Hi xfreddie,
I'm beginning to get places based on the egghead link. The solution lies in a mixture of backticks and curly braces.
This is the line of code that seems to get over the problem with the hyphens:
$params={start backup `-backuptarget:"$storagepa
When I run the script now I get the following error from WBADMIN:
ERROR - Command syntax incorrect. Error: D:. See usage below.
At least it seems to have moved past the hyphen problem. For some reason it doesn't seem to like the C:,D: piece - if I take out the ,D: it works in the script. If I pass the following command in a DOS prompt it works WBADMIN is happy with it and offers with a prompt to proceed with the backup:
wbadmin start backup -backuptarget:"\\nas\backu
Could there be some problem with the "," after C: - unlikely?
Tom.
Main Topics
Browse All Topics





by: xfreddiePosted on 2008-10-14 at 02:28:35ID: 22709722
I think you need to use an escape character see eg. http://www.leedesmond.com/ weblog/?p= 35
/software/ aspnet/304 91887/esca pe- charact er-questio n.aspx
Also a simmular question has been answered here : http://www.eggheadcafe.com
hope it helps.
Gr,
Xfreddie