Solved

winRAR, asp.net

Posted on 2011-02-12
6
539 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

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…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
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…

770 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