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\ Or

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

Who is Participating?
ToxaconConnect With a Mentor Commented:
You need to have a compression software with command line interface (CLI). If you buy Winzip or Winrar, they will have a CLI. (The test or free versions basically do not have a CLI.)

Windows zip/compressed file feature cannot be scripted.
QlemoBatchelor and DeveloperCommented:
Agree. Some commonly used alternatives are 7zip (, IzArc (needs an Add-On, see, or gzip ( The latter will compress single files only, since it is originating from UNIX tools.
Webboy2008Author Commented:
Will above software you guys mentioned can do the job 100% I posted?
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.
QlemoBatchelor and DeveloperCommented:
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.  
QlemoBatchelor and DeveloperCommented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.