View Single Post
  #2 (permalink)  
Old July 5th, 2007, 05:24 AM
nayaz nayaz is offline
Registered User
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks anyways I have found the answer. It may be helpfull for you in case..

copy is an internal command, so you cannot run in this way (a file called
copy.exe doesn't exist on your hard drive, so "System cannot find the file
specified"). You need to do:
sSyntax = "%comspec% /c copy c:file1 d:file2"
this uses the command prompt to execute the copy command

Reply With Quote