Sign in with
Sign up | Sign in
Your question

Forums for command prompt for windows 2008 machines

Last response: in Windows 2000/NT
Share
October 22, 2011 7:34:10 PM

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
November 3, 2011 5:05:05 AM

kausty said:
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


http://www.respower.com/page_tutorial_unrar
m
0
l
!