batch file help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raster
    Confirmed User
    • Aug 2003
    • 784

    #1

    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
  • Diligent
    Confirmed User
    • Aug 2003
    • 1594

    #2
    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.


    Last edited by Diligent; 12-07-2004, 12:04 PM.
    ~¤~ MORE MONEY ~¤~ VOD? XoD! ~¤~
    ~¤~ ICQ# 9828 2461 ~¤~

    Comment

    • raster
      Confirmed User
      • Aug 2003
      • 784

      #3
      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.

      Comment

      Working...