
CODE: [Copy to clipboard]上面代码我测试了,会出错。Set She = CreateObject("Wscript.Shell")
She.Run "cmd /c for /f "tokens=14 delims=: " %i in ('ipconfig^|find "Address"') do echo %i>C:\a.txt"
CODE: [Copy to clipboard][ Last edited by newxso on 2009-2-20 at 01:49 ]Set She = CreateObject("Wscript.Shell")
She.Run "cmd /c for /f ""tokens=14 delims=: "" %i in ('ipconfig^|find ""Address""') do echo %i>C:\a.txt",0,true
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |