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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-07-2004, 01:19 PM   #1
raster
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
raster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-07-2004, 02:02 PM   #2
Diligent
Confirmed User
 
Diligent's Avatar
 
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.


__________________
~¤~ MORE MONEY ~¤~ VOD? XoD! ~¤~
~¤~ ICQ# 9828 2461 ~¤~


Last edited by Just-Anotha-Mack; 12-07-2004 at 02:04 PM..
Diligent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-07-2004, 04:59 PM   #3
raster
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.
raster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.