找回密码
 加入
搜索
查看: 1757|回复: 0

[AU3基础] 麻烦高手帮我看一下,怎么带参数运行?以下是代码小弟不知道哪里错了!高手指教

[复制链接]
发表于 2010-9-23 17:09:14 | 显示全部楼层 |阅读模式
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=3.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
Global $inipath = @ScriptDir & "\run.dll"
if $Cmdline[0] = "" then
Exit
endif
if $Cmdline[1] = "/A" then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Runs", "REG_SZ",@ScriptDir& "\" &"Run.exe /R")
Exit
endif
if $Cmdline[1] = "/D" then
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Runs")
endif
If $Cmdline[1] = "/R" Then
If Not FileExists($inipath) Then
MsgBox(4096, "警告", "程序目录未发现配置文件 Run.dll", 10)
Exit
EndIf
Local $HostName
$HostName = StringSplit(IniRead($inipath, "计算机名", "计算列表", ""), ",")
for $i=0 to ubound($HostName)-1
If @ComputerName=$HostName[$i] Then
        $RUN=IniRead($inipath, "计算机名", "程序列表", "")
Run($RUN, "")
EndIf
Next
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-23 03:11 , Processed in 0.074135 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表