IxxI
08-09-2004, 09:03 AM
I'm using the following code to try and update peoples computers by copying relevant files to various places on their hard drive:
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\10.1.0.6\Files\*.ini", "C:\Program Files\Files\ini\"
objFSO.CopyFile "\\10.1.0.6\Files\*.png", "C:\Program Files\Files\Pics\"
objFSO.CopyFile "\\10.1.0.6\Files\*.vbs", "C:\Program Files\Files\vbs\"
But I keep getting a path not found error. I've tried all variations of the first path: using /'s or cutting out the 10.1.0.6, but none seem to work - am I just being particularly stupid??
Thanks in advance,
IxxI
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\10.1.0.6\Files\*.ini", "C:\Program Files\Files\ini\"
objFSO.CopyFile "\\10.1.0.6\Files\*.png", "C:\Program Files\Files\Pics\"
objFSO.CopyFile "\\10.1.0.6\Files\*.vbs", "C:\Program Files\Files\vbs\"
But I keep getting a path not found error. I've tried all variations of the first path: using /'s or cutting out the 10.1.0.6, but none seem to work - am I just being particularly stupid??
Thanks in advance,
IxxI