Is there a problem with Scripting dealing with files on a Network Share? If I used either UNC or Mapped Drive, it can never see that the file exists or copy it.
If you do the same with the local C Drive there is no issue. The below will report that the folder exists, but it can never see the file. (Yes it is in the folder)
I first get the filename from the string of a Homeseer device (It is valid)
SourceFile = hs.DeviceString (2665)
DestFile = "\\192.168.1.99\folderB\file.txt"
Set FSO = CreateObject("Scripting.FileSystemObject")
if FSO.Folderexists("\\192.168.1.99\folderA") then
hs.writeLogEx "Info", "Folder Exists", "#000080"
end if
If FSO.FileExists(SourceFile) Then
hs.writeLogEx "Info", "File Exists", "#000080"
FSO.CopyFile SourceFile, DestFile
end if
I simply want to copy a file which is on a network share using an event!! HELP.
If you do the same with the local C Drive there is no issue. The below will report that the folder exists, but it can never see the file. (Yes it is in the folder)
I first get the filename from the string of a Homeseer device (It is valid)
SourceFile = hs.DeviceString (2665)
DestFile = "\\192.168.1.99\folderB\file.txt"
Set FSO = CreateObject("Scripting.FileSystemObject")
if FSO.Folderexists("\\192.168.1.99\folderA") then
hs.writeLogEx "Info", "Folder Exists", "#000080"
end if
If FSO.FileExists(SourceFile) Then
hs.writeLogEx "Info", "File Exists", "#000080"
FSO.CopyFile SourceFile, DestFile
end if
I simply want to copy a file which is on a network share using an event!! HELP.
Comment