G
Guest
I am looking for a simple log on VBS script to copy files from a network share to a local computer. Something like \\server\share to C:\program files\foofolder, can anyone help??
Michael said:I am looking for a simple log on VBS script to copy files from a network share to a local computer. Something like \\server\share to C:\program files\foofolder, can anyone help??
Michael said:Thanks Torgeir
My problem is I am the director of IT for a mid-sized company and between all the many hats I wear daily I just don't have time to read up. I have VBS scripting books sitting on my desk for the last 6 months but I don't have time to get to them. I would love to learn how to program but it is not in the cards this month. All I really need is a quickly little script to copy Cisco VPN profiles from a server location to senior managment laptops. From the few scripts I have written I don't think this task is more than 2 or 3 lines of text but reading up on 10 different links is not for me now. Anyone able to give me some help??
Michael said:Thank you again Torgeir. So I put together this from the link you provied....
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\server\MSI_Packages\VPN\a_file.pcf" ,"C:\Program Files\cisco_test" , OverwriteExisting
..but when I run the script from a double click I get "line 3 char 1 Permission denied."