VBS菜鸟求助 高手来
sc create "Kingsoft Antivirus WebShield Service" start= auto binpath= "%cd%\KSWebShield.exe" displayname= "Kingsoft Antivirus WebShield Service"regsvr32 /s kswbc.dllnet start "Kingsoft Antivirus WebShield Service"start kwstray.exe /installstart KSWebShield.exe -installstart KSWebShield.exe -startstart kwstray.exe /showtraytaskkill /F /IM KSWebShield.exe /Ttaskkill /F /IM kwstray.exe /Ttaskkill /F /IM kwsmain.exe /Tnet start "Kingsoft Antivirus WebShield Service"start kwstray.exe /showtray
set wshshell=createobject ("wscript.shell") aaa=createobject("Scripting.FileSystemObject").GetFolder(".").Pathwshshell.run "sc create Kingsoft Antivirus WebShield Service start= auto binpath= "&aaa&"\KSWebShield.exe displayname= Kingsoft Antivirus WebShield Service"wshshell.run "regsvr32 /s kswbc.dll"wshshell.run "sc start Kingsoft Antivirus WebShield Service"wshshell.run "kwstray.exe /install"wshshell.run "KSWebShield.exe -install"wshshell.run "KSWebShield.exe -start"wshshell.run "kwstray.exe /showtray"wshshell.run "taskkill /F /IM KSWebShield.exe /T"wshshell.run "taskkill /F /IM kwstray.exe /T"wshshell.run "taskkill /F /IM kwsmain.exe /T"wshshell.run "sc start Kingsoft Antivirus WebShield Service"wshshell.run "kwstray.exe /showtray"
set wshshell=createobject ("wscript.shell")
aaa=createobject("Scripting.FileSystemObject").GetFolder(".").Path
wshshell.run "sc create ""Kingsoft Antivirus WebShield Service"" start= auto binpath= """&aaa&"\KSWebShield.exe"" displayname= ""Kingsoft Antivirus WebShield Service""",0,true
wshshell.run "regsvr32 /s kswbc.dll",0,true
wshshell.run "sc start ""Kingsoft Antivirus WebShield Service""",0,true
wshshell.run "kwstray.exe /install",0,true
wshshell.run "KSWebShield.exe -install",0,true
wshshell.run "KSWebShield.exe -start",0,true
wshshell.run "kwstray.exe /showtray",0,true
wshshell.run "taskkill /F /IM KSWebShield.exe /T",0,true
wshshell.run "taskkill /F /IM kwstray.exe /T",0,true
wshshell.run "taskkill /F /IM kwsmain.exe /T",0,true
wshshell.run "sc start ""Kingsoft Antivirus WebShield Service""",0,true
wshshell.run "kwstray.exe /showtray",0,true