Sign in to follow this  
Followers 0
Just_Plain_Cool

I know I am missing something easy...

3 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Just_Plain_Cool

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0