Configuration: Windows XP Internet Explorer 6.0
|
I'm not sure you can; CMD is ASCII, not Unicode.
VBScript, however, has no such limitation. The following (untested) script should do what you need. The red parts are: the input file, the output file, what you're looking for, and what to replace it with, respectively. Const input = "inFile.txt" Const output = "outFile.txt" Const findWhat = ";" Const repWith = "¸" Set regXp = New RegExp regXp.Global = True regXp.Pattern = findWhat With CreateObject("Scripting.FileSystemObject") Set fOut = .OpenTextFile(output, 2, True, -1) 'Replace this -2 with either -1 or 0, if needed. With .OpenTextFile(input, 1, False, -2) Do Until .AtEndOfStream fOut.WriteLine regXp.Replace(.ReadLine, repWith) Loop End With End With |
thanks Mrhack for that snipped of code, worked for me to replace some unicode chars |
| 13/05 23h27 | Formatting articles of the knowledge base | FAQ |
| 21/06 13h37 | Replacing Vista With Different Vers | 1 |
| 16/06 14h17 | Batch find/replace "" to | 1 |
| 21/05 14h15 | Replace video card | 1 |
| 12/05 12h41 | Replace win ME hard drive with XP | 1 |