Just_Plain_Cool Posted October 5, 2004 Share Posted October 5, 2004 Hello all, Trying to get a dos command running using @ComSpec and not having alot of success. Script is simply to archive a directory once a day and restore from the archive if needed. I can unarchive the dir just fine, but can't get the archiving to work. The dos command is: c:\7-Zip\7za.exe a -t7z c:\Test.7z "c:\Program Files\TestDir\*" I can't figure out how to send the part with the quotation marks through @ComSpec. Any help would be appreciated, JPC Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 5, 2004 Share Posted October 5, 2004 Hello all,Trying to get a dos command running using @ComSpec and not having alot of success. Script is simply to archive a directory once a day and restore from the archive if needed. I can unarchive the dir just fine, but can't get the archiving to work. The dos command is:c:\7-Zip\7za.exe a -t7z c:\Test.7z "c:\Program Files\TestDir\*"I can't figure out how to send the part with the quotation marks through @ComSpec.Any help would be appreciated,JPC <{POST_SNAPBACK}>'c:\7-Zip\7za.exe a -t7z c:\Test.7z "c:\Program Files\TestDir\*"'You use single quotes for the outside and double quotes inside as needed.*** Matt @ MPCS Link to comment Share on other sites More sharing options...
Just_Plain_Cool Posted October 5, 2004 Author Share Posted October 5, 2004 (edited) 'c:\7-Zip\7za.exe a -t7z c:\Test.7z "c:\Program Files\TestDir\*"'You use single quotes for the outside and double quotes inside as needed.*** Matt @ MPCS<{POST_SNAPBACK}>Hi Matt,How did I know you'd be along shortly to bail me out? I had tried that, but apparently had a typo in it because my version did not work, but now it works just fine. Go figure...Thanks again,JPC Edited October 5, 2004 by Just_Plain_Cool Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now