![]() |
batch file help
Would anyone have a small snippet of code that I can include in a batch file that would look though all the characters of a multiline text file and anytime it comes across any of the following characters, [ + / * ? < > , . : ; " " \ = [ ] |, it would simply replace it with a space.
I've got a VB script that will do this, but it would be a lot more efficient as a batch file. Thanks |
You could get someone to code You a small .exe that can be called from a batch-file, answering to/acting on parameters.
Say You have something like "replace.exe", then You could call in normal fashion: "C:\>replace /with:ascii20" or just put that in a batch-file. The .exe could be a bit more advanced; feed it with a textfile of characters to look for as one parameter and then the character to replace them with as another parameter. :glugglug |
That's pretty much what I'm doing right now, I'm calling the VB script from a batch file.
However, each time the VB script runs, it gets picked up as suspicious activity and I need to give it permission to run, so I can't just walk away. |
All times are GMT -7. The time now is 09:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123