Forums for command prompt for windows 2008 machines

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
1 answer Last reply
More about forums command prompt windows 2008 machines
  1. 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
Ask a new question

Read More

Windows Server 2008 Command Prompt Windows