| 1. |
Solve : Find a string in a running batch file and replace it.? |
|
Answer» I used the search, and everything I found didn't HELP much. So, how would you find a string in a batch file, and using the same batch file replace that string.You want a batch file to alter itself? You want a batch file to alter itself? Quote from: BatchFileCommand on January 11, 2009, 06:52:52 PM Neither of you are correct ... so in a way I need the batch file to alter itself, but not literally. now you're contradicting yourself. You want to "alter" the batch file, but not "literally" how? spiritually? how about instead, you test within the batch file wether to show the popups, rather then trying to dynamically modify running code.I just thought up a way. When I'm done with the batch file I will just copy the whole thing (in the same batch file) and the copied section will have the messages disabled. The quick and dirty way.... hehe. Quote Maybe the towers of Hanoi in a batch file. Roll Eyes Wait, I think somebody already did that! Yeah, someone did do it. 1mb . |
|