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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to restore using Acronis

Status
Not open for further replies.

dseaver

IS-IT--Management
Jul 13, 2006
467
The following command works in the command line so that i can restore a volume from acronis trueImage, but when its enclosed in quotes, and place in a script, it wont work.

trueimagecmd /filerestore /asz:1 /index:1 /target_folder:d:\new2

working command above


Dim MyObj
Set MyObj=CreateObject("WScript.Shell")
MyObj.Run "c:\program files\acronis\trueimageworkstation\trueimagecmd.exe /filerestore /asz:1 /index:1 /target_folder:d:\new2"

nonworking script
 
MyObj.Run "[!]""[/!]c:\program files\acronis\trueimageworkstation\trueimagecmd.exe[!]""[/!] /filerestore /asz:1 /index:1 /target_folder:d:\new2"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
THat line gets me an "Expected end of statement" error
 
Here is a little more info on what is trying to be accomplished with this script: We are trying to set a computer to automatically restore an image nightly so that all of our custom drivers and such are restored incase someone messes them up
 
Which line ?
I repost in fixed font, so you can count the quotes ...
[tt]MyObj.Run """c:\program files\acronis\trueimageworkstation\trueimagecmd.exe"" /filerestore /asz:1 /index:1 /target_folder:d:\new2"[/tt]

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I found the error, i had myobj.run twice, my bad. THanks for the help, that worked!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top