| |
nik1420
Posts: 61
Score: 0
Joined: 12/19/2007
Status: offline
|
I'm trying to write this script that will copy down a file from the server, if it does not exists locally. I can't get my thoughts together, so I need some help. Here's what I have: FILE1="c:\program files\app\file.txt" Set objFSO = CreateObject ("Scripting.FileSystemObject") If objFSO.FileExists(FILE1) Then Wscript.sleep 1000 Else objFSO.CopyFile \\Server\Apps\Program\file.txt, "C:\Program Files\app\" End If This works, but is there another way to write this, simplified way so that I don't have the Wscript.sleep?? If the file exists, I don't want it to do anything. Thanks in advance...
|
|