Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Deleting files using a .bat
Name: AJ_Letson Date: February 14, 2008 at 08:29:46 Pacific OS: XP Pro ver 2002 SP2 CPU/Ram: 450MHz, 256MB Product: Gateway E-3200
Comment:
I'm trying to write a .bat file (under WinXP) that will search for files containing a certain string (for example, if the words "hello there" are found within the file) and then delete those files. I need to be able to search all available drives.
General outline:
IF EXIST A:\ -> search A:\ for files containing string, then delete those files repeat for B:\ to Z:\
Hopefully this makes sense. Thanks in advance for your help!
Summary: This is the updated code. Corrects possible issue with the month variable (%MM%). Start of code: --------- @echo off REM Created: 10 April 2007 by Pete Soski REM Updated: 28 August 2008 by Pete Sos...
Summary: I have some remote users who connect to the domain using a vpn tunnel. Once connected they are using a bat file to copy a spreadsheet to a server. The problem I am having is that their credentials fo...