How to achieve automatic line breaks in input text? For example, xxxxxxxx newline yyyyyyyy >1.tx The generated text is XXXXXXX YYYYYYY
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Dim fso,wshell
Set wshell=WScript.CreateObject("Wscript.shell")
Set fso=CreateObject("scripting.filesystemobject")
Set file=fso.opentextfile("huanhang.txt")
all=file.readall
s=replace(all,"换行",vbcrlf)
file.close()
Set b=fso.CreateTextFile("new.txt")
b.Write(s)
b.Close
wshell.Run "new.txt"
Originally posted by enixchen at 2007-4-26 17:21:
echo dim ws>>12.vbs
echo str = "Sorry girl:$I think I...$don't love you!">>12.vbs
echo Num = len(str)>>12.vbs
echo set ws=wscript.createobject("wscript.shell&quo ...
Originally posted by enixchen at 2007-4-26 22:21:
How to implement saving and closing? ? ?
| Rater | Score | Time |
|---|---|---|
| huzixuan | +4 | 2007-04-29 23:37 |
sed "s/换行/\n/g" urfile