Question : Command to remove #'s from a text file

Hi,
I need a simple command or .bat script to take a .txt file, remove all # characters from the contents of the file, and overwrite the file with the new file.
Thanks,
Jamie

Answer : Command to remove #'s from a text file

Here's an example of a quick way to do it in VBS, just to give you the idea of that approach.

If you want to look at a small freeware utility then here's one of those to consider:

http://www.paulslore.com/utils/chgstr.zip

~bp
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Dim fso, tsIn, tsOut
Set fso = CreateObject("Scripting.FileSystemObject")
Set tsIn = fso.OpenTextFile("c:\Input.txt")
Set tsOut = fso.CreateTextFile("c:\Output.txt", True)
tsOut.Write Replace(tsIn.ReadAll, "#", "", 1, -1, 1)
tsIn.Close
tsOut.Close
Set tsIn = Nothing
Set tsOut = Nothing
Set fso = Nothing
Random Solutions  
 
programming4us programming4us