Jump to content

I know I am missing something easy...


Recommended Posts

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

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

'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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...