[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

specifying different directories using rar

Hello,
I am working with rar.exe creating compressed files of my databases.  I am running the following command:
X:
cd X:\Microsoft SQL Server\MSSQL.1\MSSQL\Test
"C:\Program Files\WinRAR\rar.exe" a -r master.rar master* model*

The command works great taking the master and model folders of my test drive - compressing them and leaving the rar file inside of the test directory - No problems:

here is my question:
Is there any way to get the rar.exe command above  to send the rar file to another directory instead of leaving it in the test directory.
I would like the file once compressed to end up at this directory:
X:\Microsoft SQL Server\MSSQL.1\MSSQL\CompressBU

Thanks
John
0
hexvader
Asked:
hexvader
1 Solution
 
slado2Commented:
"C:\Program Files\WinRAR\rar.exe" a -r "X:\Microsoft SQL Server\MSSQL.1\MSSQL\CompressBU\master.rar" master* model*
0
 
hexvaderAuthor Commented:
I tried that earlier but I left out the "" aorund the path.
Live and learn.
Thanks for your help
john
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now