Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Hi all, I am running Windows 2003. I am new to batch files, but need to do the following with your help: I have a directory with 2 -3 files (potentially). I need to write .bat file that will take the first file (ba_20090908.txt) and 1. copy it to another dir 2. rename it 3. run a procedure against it 4. remove it from original dir
Then do the same with the next file in the directory, then next ... till they all processed.
Name: Ed in Texas. Date: September 9, 2009 at 03:58:13 Pacific
Reply:
epipko, I'd first establish a variable 'x' and name it my active filename, then do whatever was required to 'x' and when done, clear 'x' and carry on to the next file and do it again, etc. You could use an 'if/then/else' to tell the process when to stop. HTH. Ed in Texas.
Summary: so i took a friends hdd and hooked it up on my computer becuase he was having trouble with viruses and spyware. I thought maybe i could delete the crap when it was connected on my computer. (his hdd...
Summary: Ivo, Thanks it works just fine. But when I tryed to modify it a little to do exactly what I need, I've got an error. please look at modified script below. Could you please tell me what I did wrong? I...
Summary: Set a restore point (just so we don't get in trouble):Start>All Progs>Accessories>System Tools>System Restore Follow the instructions to make a new point. Heres a trick to fool XP's *don't delete syst...