![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2003
Posts: 784
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Aug 2003
Location: Hoy Suecia, mañana Nirvana
Posts: 1,594
|
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. ![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Aug 2003
Posts: 784
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |