Hello, I have a problem connecting to a server to copy files. The server is mapped as admin but when I try and copy the file it gives me an error saying that the file is not found. If I copy the file to the C:\ drive and try and copy from there it works fine. Just wondering if anyone could help me out and tell me what I am missing. Thanks in Advance.
sFileToCopy = "WEBEXTD" + sDayMonthYear(2) + sDayMonthYear(1) + stemp + ".log"
Dim SourceFile, DestinationFile As String
SourceFile = "j:\\Program Files\\Microsoft ISA Server\\ISALogs" + sFileToCopy
DestinationFile = "c:\\temp\\" + sFileToCopy ' Define target file name.
FileCopy(SourceFile, DestinationFile)
sFileToCopy = "WEBEXTD" + sDayMonthYear(2) + sDayMonthYear(1) + stemp + ".log"
Dim SourceFile, DestinationFile As String
SourceFile = "j:\\Program Files\\Microsoft ISA Server\\ISALogs" + sFileToCopy
DestinationFile = "c:\\temp\\" + sFileToCopy ' Define target file name.
FileCopy(SourceFile, DestinationFile)