P
PAPutzback
Message Exception: The process cannot access the file "K:\EDI
DATA\ANS\OUTBOUND\ARCHIVE\IPHC20041207.TXT" because it is being used by
another process.
StackTrace Exception: at System.IO.__Error.WinIOError(Int32
errorCode, String str)
at System.IO.File.Move(String sourceFileName, String destFileName)
at Scout.MyScoutService.ANSSendAll()
The Code:
For Each FiletoArchive In FilesToArchive.GetFiles("*.txt")
EventLog1.WriteEntry(FiletoArchive.FullName & " Fullname")
EventLog1.WriteEntry(FiletoArchive.Name & " Name")
File.Move(FiletoArchive.FullName, _
"K:\EDI DATA\ANS\OUTBOUND\ARCHIVE\" & FiletoArchive.Name)
Next
Is the problem with K being a network drive or the path having spaces
in the directory names?
Also this code is running as a service and I can't debug it without it
showing me assembly code.
Thanks,
Phillip Putzback
DATA\ANS\OUTBOUND\ARCHIVE\IPHC20041207.TXT" because it is being used by
another process.
StackTrace Exception: at System.IO.__Error.WinIOError(Int32
errorCode, String str)
at System.IO.File.Move(String sourceFileName, String destFileName)
at Scout.MyScoutService.ANSSendAll()
The Code:
For Each FiletoArchive In FilesToArchive.GetFiles("*.txt")
EventLog1.WriteEntry(FiletoArchive.FullName & " Fullname")
EventLog1.WriteEntry(FiletoArchive.Name & " Name")
File.Move(FiletoArchive.FullName, _
"K:\EDI DATA\ANS\OUTBOUND\ARCHIVE\" & FiletoArchive.Name)
Next
Is the problem with K being a network drive or the path having spaces
in the directory names?
Also this code is running as a service and I can't debug it without it
showing me assembly code.
Thanks,
Phillip Putzback