|
发表于 2008-10-2 08:43:59
|
显示全部楼层
LZ的那些代码是找来的吧?
[code]
#include <Process.au3> ;包含一个特殊脚本,可以在这脚本里使用此脚本的UDF
$rc = _RunDos("start Http://www.autoitscript.com") ;打开一个网址,并返回程序的PID(起码是这个意思,但可惜这样调用,不能获得!与前面的变量名是什么一点关系统也没有!)
$rc = _RunDos("start Http://www.autoitscript.com")
$rd = _RunDos("start Http://www.autoitscript.com")
两个命令的本质一点没变,所以情况一致!
下面的DOS命令都是用隐藏方式运行的,所以在运行后会看不见它的运行情况!
Run(@ComSpec & ' if exist name.txt del name.txt',"", @SW_HIDE)
Run(@ComSpec & ' find "Machine name" dxdiag.txt >name.txt',"", @SW_HIDE)
Run(@ComSpec & ' for /f "skip=2 tokens=3" %%M in (name.txt) do set pp=%%M',"", @SW_HIDE)
Run(@ComSpec & ' if exist all.txt del all.txt',"", @SW_HIDE)
Run(@ComSpec & ' find " Memory:" dxdiag.txt >all.txt',"", @SW_HIDE)
Run(@ComSpec & ' for /f "skip=2 tokens=2,3*" %%I in (all.txt) do set lo=%%I',"", @SW_HIDE)
Run(@ComSpec & ' @echo %pp% %lo% >>\\gameserver\tool$\整理.txt',"", @SW_HIDE) |
|