batch program

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

tpreethi4u

Thread Starter
Joined
Apr 22, 2010
Messages
1
Hi,

I have a batch program which does rar compression of .bak files and deletes the .bak file.
Here is the program:

@echo off
rar a -ag-MMM-YY -m5 ICTS_DataSpring_V3.rar *.dmp
del *.dmp
forfiles /d -1 /p "." /m ICTS*.rar /c "cmd /c del @FILE"


It is not compressing the files.

Please help.
 
Joined
Aug 7, 2007
Messages
9,028
Welcome to TSG!

The code you posted will compress then delete *.dmp, not *.bak files.
Forfiles.exe is not included with WinXP, so I'm assuming you've installed a copy from someplace, or that line will fail.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top