I developed a windows service which will copy some files in to the local system folder and then to another system. Right now my system and another system are connected in LAN and have shared along with Read/write access. It Is working for me.....
but now I need to copy the files from one system to another system which are not connected in the LAN and not have shared permissions...
On my search I came to know this can be done by FTP.
If I have to use FTP the what I have to do..?
1.Is that I need a FTP client application seperately?
2.Is that I need a FTP server application seperately?
If your application needs to send a file to another PC , that seems similar to a Client uploading to a FTP Server . So you need to make your application client and the need to have FTP Sever on the Other PC.
You can also create a WebServcie for the PC you need to put the file.
just pass the file in the service parameter.
Hi guys, I want to write to a file but i am getting this weird error message. Only my application is using the path1. It Seems like file is being used by other process. I couldn't figure it out who is using which of my function is using the file.
using (StreamWriter sw = new StreamWriter(path1,false,Encoding.UTF8 ))
at System.IO._Error.WinIOError(Int32 errorCode,string maybeFullPath)
at System.IO.FileStream.Init(String path,FileMode mode,FileAccess access,Int32 rights,Boolean useRights,FileShare Share,Int32BufferSize,fileOptions options, SeCURITY_ATTRIBUTES secAttrs,String msgPath,Boolean bFromProxy)
Yes, I do have permissions. I am creating folders, subfolders and file dynimacally and writing to the file. Even removing of sw.close or using statments doesn't help. Is there anyway i can find out which thread is using the file.
Thanks for answering guys, So far no lucky but what a funny thing i just noticed is that when i run the function to write to the file it throws exception related to file is being used by other process but when i run it again it actually writes ....what's going on I got no idea. Are my codes running faster than CPU ...;)
Exactly, you got the cure for my app problem.....before when i used to run my app in debug mode i was noticing this myapp.vshost.exe started...since i uncheck it works like charm.... Feel like i am on the safe planet....gonna giving u 5
i have tried this but i have scanned an answer sheet of entrance test exam paper, n stored as image file so i want to read at which answer's line its option is selected.The image includes options like you have to choose one answer from 4.So i want find which option is selected.
studying would probably be easier, but you're going to need some kind of really cool OCR or image recog software, i've seen some articles on CP about it but cant remember what i was looking for at the time, i think one compared the color data of each pixel to try to find patterns, it may have even been looking for things that were circled. handwriting recognition software may help too.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.