R
Rene
Hi,
Maybe I'm wrong, but we get an exceptoin on File.Move ("FileA", "FileB" )
because FileA is still in use (sharing violation), but the Exception.Message
says:
Process cannot access the file "FileB" because it is being used by another
process.
The destination FileB does even not exists, seems to me a wrong message,
not?
try
{
File.Move ( ("FileA",, "FileB");
break;
}
catch ( Exception E )
{
WriteLogMessage ("Move not successful " + E.Message );
}
Maybe I'm wrong, but we get an exceptoin on File.Move ("FileA", "FileB" )
because FileA is still in use (sharing violation), but the Exception.Message
says:
Process cannot access the file "FileB" because it is being used by another
process.
The destination FileB does even not exists, seems to me a wrong message,
not?
try
{
File.Move ( ("FileA",, "FileB");
break;
}
catch ( Exception E )
{
WriteLogMessage ("Move not successful " + E.Message );
}