Jape
5/21/2008 6:48:00 AM
Have written a c# console-program which is supposed to copy multiple files
selected from windows.explorer to several servers.
I have entered the program to run from the explorers menu.
The program works otherwise exept that the File.copy(filein,fileout,true);
throws an ioexception : The process cannot access the file
'\\server.path\xxx.txt' because it is being used by another process. This is
the file filein. The process which is using the file must be windows.explorer
when i have selected the file. How can i free the file from the process or
force the copy?