Forums for command prompt for windows 2008 machines

kausty

Distinguished
Oct 22, 2011
1
0
18,510
Hello,
Hi All,

Here, I am trying to do a simple RAR of the files. Here is the following command I am using:

Command:

set DP_DIR="C:\Test"
set source="C:\Windows\System32\Tasks\*.*"
RAR -o+ -agYYYYMMDD a -ai %DP_DIR%\Tasks_ %source%

Output:

RAR 3.90 Copyright (c) 1993-2009 Alexander Roshal 16 Aug 2009
Shareware version Type RAR -? for help
Evaluation copy. Please register.
Creating archive C:\Test\Tasks_20111023.rar
WARNING: No files

This folder actually has the XML files, but as you might all know it is has the type "File" and not any .xml or .txt. So i suppose the rar command is not able to backup the files of "unknown" type and hence it gives me this issue.

Do you have any suggestions on how I can you this RAR command from CMD prompt to achieve this? Please help!!

Actually it does create a .rar folder as "C:\Test\Tasks_20111023.rar" if I set source="C:\Windows\System32\Tasks" but it does not contain any files but only the folder structure.

Please help.....awaiting your inputs!!

Regards,
Kausty
 

chamaecyparis

Distinguished
Nov 21, 2010
321
0
18,810


http://www.respower.com/page_tutorial_unrar