Hi ,
I am using a simple script to copy the contents from a fileshare to the Local computer on Vista OS. Following is SCRIPT:
SourceFolder = "Z:\Builds\XVI_Int_2.0.15\"
CopyContents = "MMC_cd_code"
DestinationFolder = "C:\users\ABC\Builds\"
Set FSO = CreateObject("Scripting.FileSystemObject")
set WshShell = createobject("WScript.Shell")
Set Source1 = FSO.GetFolder(SourceFolder)
Set Source2 = Source1.SubFolders
Set Source3 = Source1.Files
For Each s12 in Source3
if Instr(1,s12.Name,CopyContents,1) then
FSO.CopyFile SourceFolder + s12.Name, DestinationFolder
End If
Next
The script works fine on the XP os, but when i try to run the same on the Vista os, i get a error that says
"The Specified Network share is no Longer available"
Err Code : 80070040
How to address the same ?
Regards,
Vijay V K