为什么我用RUN 启动过滤王提示找到某文件
为什么我用RUN 启动过滤王提示找到某文件用批处理运行就正常!!快捷方式也一样~ 把脚本和过滤王安装程序放在同一个文件夹试试 放到目录里可以` 为什么放到外边不行呢? 程序路径是这样的 D:\Program Files\Zetronic\过滤王网吧版5.6.4.16 -CA控制台 不是安装程序` 我做的是自动登陆的脚本 你是怎么Run的? #NoTrayIcon
Dim $lu,$ch,$jing
$lu = "D:\Program Files\Zetronic\过滤王网吧版5.6.4.16 -CA控制台\FG_Manager.exe"
$jing = "FG_Manager.exe"
$ch = "连接服务器"
If Not ProcessExists($jing) Then
Run($lu)
WinWait($ch,"服务器地址")
WinActivate($ch,"服务器地址")
ControlSetText($ch,"服务器地址","Edit1","192.168.0.250")
ControlClick($ch,"服务器地址","TBitBtn2","left")
WinWait($ch,"操作员名称")
ControlSetText($ch,"操作员名称","TEdit2","admin")
ControlSetText($ch,"操作员名称","TEdit1","1")
ControlClick($ch,"操作员名称","TBitBtn2","left")
Exit
EndIf
MsgBox(4096,"错误","控制台正在运行!")
Exit
这个脚本放到别的目录不行` ` 现在只能改以下脚本了` `
#NoTrayIcon
Dim $lu,$ch
$lu = "FG_Manager.exe"
$ch = "连接服务器"
If Not ProcessExists($lu) Then
Run($lu)
WinWait($ch,"服务器地址")
WinActivate($ch,"服务器地址")
ControlSetText($ch,"服务器地址","Edit1","192.168.0.250")
ControlClick($ch,"服务器地址","TBitBtn2","left")
WinWait($ch,"操作员名称")
ControlSetText($ch,"操作员名称","TEdit2","admin")
ControlSetText($ch,"操作员名称","TEdit1","1")
ControlClick($ch,"操作员名称","TBitBtn2","left")
Exit
EndIf
MsgBox(4096,"错误","控制台正在运行!")
Exit
有什么方法可以让第一个脚本正常运行的吗? 试下$lu = "C:\Program Files\NTFS数据流扫描工具\ScanNTFS.exe"
$wk = "C:\Program Files\NTFS数据流扫描工具"
Run($lu,$wk) 可以了` 谢谢
页:
[1]