Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CopyToDVD with WshShell problem

Status
Not open for further replies.

utilman

IS-IT--Management
Dec 25, 2002
35
NL
I get a "could not find file" error message when I run this script. Can somebody help me out..


'Burn Backup with CopyToDVD

Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
wshshell.run "C:\Program Files\CopyToDVD\copytodvd\copytocd.exe " & "E:\Downloads\Symantec AntiVirus Corporate Edition 9.0.0 Build 1400"

Set WshShell = Nothing
 
Try to Replace this:
wshshell.run "C:\Program Files\CopyToDVD\copytodvd\copytocd.exe " & "E:\Downloads\Symantec AntiVirus Corporate Edition 9.0.0 Build 1400"
By this:
wshshell.run """C:\Program Files\CopyToDVD\copytodvd\copytocd.exe"" " & """E:\Downloads\Symantec AntiVirus Corporate Edition 9.0.0 Build 1400"""


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thx m8.. totally forgot those triple " option. Always seems to work with LFN :)
Fortunately you helped me out here.. Thx again for your reply
 
Here is the complete code:


'Burn Backup with CopyToDVD

Dim WshShell
createobject("wscript.shell").popup "Over 30sec begint de backup. Zorg dat er een CDRW in de brander zit!", 30, "BACKUP naar CDRW (CopyToDVD)", 64

Set WshShell = CreateObject("WScript.Shell")
wshshell.run """C:\Program Files\CopyToDVD\copytodvd\copytocd.exe"" " & """E:\UPLOAD\Acronis Disk Director Suite v9.0""", 0, True

createobject("wscript.shell").popup "Backup is voltooid!", 5, "BACKUP naar CDRW (CopyToDVD)", 64

Set WshShell = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top