Link to home
Start Free TrialLog in
Avatar of Webboy2008
Webboy2008

asked on

window command

I have window server 2003.
And I would like to have automatic process as following:

I have file called sample1.bak  in c:\backup\sample.bak
I would like to setup automatic process at 9:00 PM <<PST>>
And zip/rar to

in c:\backup\sample.zip Or
    c:\backup\sample.rar

Please provide working procedure and code. I am not network admin or programmer.

Thank
ASKER CERTIFIED SOLUTION
Avatar of Toxacon
Toxacon
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Qlemo
Agree. Some commonly used alternatives are 7zip (http://www.7-zip.org/), IzArc (needs an Add-On, see http://www.izarc.org/izarccl.html), or gzip (http://gnuwin32.sourceforge.net/packages/gzip.htm). The latter will compress single files only, since it is originating from UNIX tools.
Avatar of Webboy2008
Webboy2008

ASKER

Will above software you guys mentioned can do the job 100% I posted?
Yes, for example winrar command would be:

winrar m c:\backup\sample1.bak c:\backup\sample.rar

Open in new window


That command will compress file sample1.bak and move it archive sample.rar.

You can set this up to be run at specified time with Task Scheduler.
All those tools will allow for automated execution.
Creating a scheduled task, for whichever tool you use, can be done via the Task Scheduler, which is interactive, or by command (using the winrar as example):
schtasks /create /sc daily /tn "Zipper Task" /tr "winrar m c:\backup\sample1.bak c:\backup\sample.rar" /st 21:00

Open in new window

The string after /tn provides the (arbitrary) name you want to have for the task.
After /tr follows the complete commandline of the task to execute.
I think Task Scheduler could perform ur task on a specific time.  
Can you explain, please, why you accepted only one answer? It did not cover all aspects of your question, and there were several other comments with more details.