1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

batch program

Discussion in 'Windows XP' started by tpreethi4u, Apr 22, 2010.

Thread Status:
Not open for further replies.
  1. tpreethi4u

    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.
     
  2. TheOutcaste

    TheOutcaste

    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.
     
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 733,556 other people just like you!

Loading...
Similar Threads - batch program
  1. MRB1LL
    Replies:
    8
    Views:
    492
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/918509

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice