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.
Bat file to del *.txt IF word NOT e
Name: joe_atkinson Date: November 30, 2008 at 19:46:27 Pacific OS: XP CPU/Ram: 2Gb Product: Dell D630
Comment:
Guys,
I need your help.
I would like to know what the command lines are for a batch file to 1) read a named text file in c:\ and then delete this text file IF a certain word isnt there.
i.e. Each day apples.txt is saved to c:\, I want the batch file to run and delete the whole file IF and only IF the batch file does not contain the word "lemons"
Summary: I have been working on a project to make a bat file to remove known processes and files related to Antivirus 2009. I have gotten pretty far and just need a little help. I can't figure out how to use c...
Summary: I want a bat file to serach a txt file for paticular word say "xyz" and replace that word with "abc" and save it again eg I have bat file +++ test user name computer name thanks test +++ the "test" i...
Summary: A question to BAT-gurus! First of all, I am not a programmer, so please don't blame my ignorance. Every morning I come to office and open my Internet Explorer to see what happened last day. I am pret...