Solved

winRAR, asp.net

Posted on 2011-02-12
6
535 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
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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 properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now