Solved

winRAR, asp.net

Posted on 2011-02-12
6
547 Views
Last Modified: 2012-06-21
Experts:

Does winRAR allow user to setup date/time to zip a file? Assume we have backup batch <<.bak>> arrive to folder A daily at 1:00 pm. I would like to setup date and time like 1:15 pm so it will automatically zipped into rar/zip file.

Thanks,
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
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:BurnieP
ID: 34879493
I don't think you can tell winRar to schedule a task.

What you can do is create a .bat file with command line that will zip your .bak.  Then setup a Scheduled task to run every day at 1:15 that will execute your .bat file.

0
 

Author Comment

by:Webboy2008
ID: 34879531
BurnieP: Thank you. But I am looking for automation, trying to avoid any human error.

0
 
LVL 16

Accepted Solution

by:
BurnieP earned 500 total points
ID: 34879619
Hi,

I don't understand, the solution I am proposing is automated.

Let's say you create a backup.bat file that contains this line :

C:\Program Files\WinRAR\WinRAR.exe a -u -r C:\BackupName.rar C:\BackupPath\*.bak

Then you create a windows scheduled task to run every day at 1:15pm, and you tell the task to execute the .bat file.   Meaning that everyday at 1:15, a BackupName.rar will be created containing the .bak file.  No human intervention necessary.

Of course now, the names and the paths will change with your names and paths, my example is simple only to give an idea.

0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 34880374
>>Zones: SQL Server 2005, Programming for ASP.NET, Web Development Software<<
Does this question have anything remotely to do with SQL Server 2005
0
 

Author Comment

by:Webboy2008
ID: 34881512
BurnieP: How to create window scheduled task from .bat to rar automatically?
Thanks
0
 
LVL 16

Expert Comment

by:BurnieP
ID: 34882979
Ok,

Here are the basic steps :

Open NotePad and type this line where C:\Program Files\WinRAR\WinRAR.exe is the location of the WinRar executable and C:\BackupName.rar is the path where you want the backup to be saved and C:\BackupPath\*.bak is the location of your .bak file.

C:\Program Files\WinRAR\WinRAR.exe a -u -r C:\BackupName.rar C:\BackupPath\*.bak

Save it and name it Backup.bat or any other name but it has to have the .bat extension.

Next step create the scheduled task :

Go to Administrative Tools and select Task Scheduler.
Right Click on the first item in the menu and choose Create Basic Task.
Choose a name for the task and a description, then click Next.
Choose Daily and click Next.
Put the start time of the first execution, then the recurrence (in your case 1 day) and click Next.
Choose Start a program and click Next.
Click Browse and select the .bat file you just created earlier and click Next.
Click Finish.

Your scheduled task should be now created and will start at the time you have specified and will run everyday at the same time.  If the .bat you have created is correctly defined with the right paths, you should have a .rar file created everyday containing the .bak file.

Again,  this is just a simple solution.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

710 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