Solved

window command

Posted on 2011-02-12
8
287 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:Webboy2008
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 8

Accepted Solution

by:
Toxacon earned 500 total points
ID: 34881634
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.
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 34882243
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.
0
 

Author Comment

by:Webboy2008
ID: 34883054
Will above software you guys mentioned can do the job 100% I posted?
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 8

Expert Comment

by:Toxacon
ID: 34883136
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.
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 34883215
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.
0
 
LVL 5

Expert Comment

by:NARANTHIRAN
ID: 34894198
I think Task Scheduler could perform ur task on a specific time.  
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 35067071
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.
0

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question