复制代码
- option explicit
- dim fso,file,content
- set fso=createobject("scripting.filesystemobject")
- set file=fso.opentextfile("c:\\ab.txt",8)
- file.write("i love you")
- content=file.readall
- wscript.echo content
- file.close
- set fso=nothing
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |