Solved

winRAR, asp.net

Posted on 2011-02-12
6
549 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
Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

 
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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

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 exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

623 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