Hello everyone.
I have a MS-DOS batch script that executes a custom command for each line in a specific text file. And I want it to delete each line after executing the command so that the next time i open the batch i can resume it without starting all over and executing the loop through the same lines. Got it ?
Thank you very much :)
MS-DOS: Loop through each text line and delete it after
Started by Sharp-Shooter, Apr 30 2011 06:25 AM
3 replies to this topic
#1
Posted 30 April 2011 - 06:25 AM
|
|
|
#2
Posted 30 April 2011 - 09:17 AM
Why not just delete the file when done?
#3
Posted 30 April 2011 - 01:14 PM
Actually the file have more than 13000 lines = 13000 loops and there is a wait time between each loop executed. Its a "few" days. Thats why I need to know how to delete each line after, because the loop for each line may only be done once. The simple MS-DOS command to delete each line after its all I need.
Thanks
Thanks
#4
Posted 30 April 2011 - 05:19 PM
Calling it a "simple" MS-DOS command assumes the command exists. Again, why do you need to delete them one at a time? I'm questioning your assumptions on purpose, because I suspect there is a different way to think about your problem that will help. You should be able to process 13000 lines in a few minutes, not a few days.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









