ServiceControl.au3出错?
本帖最后由 流沙枫 于 2013-10-15 19:43 编辑#include <ServiceControl.au3>
If _ServGetState('secondary logon') = "Running" Then
MsgBox(0, 0, 'secondary logon Is Running')
Else
MsgBox(0, 0, 'secondary logon Is NOT Running')
RunAs ( "admin", "local", "passwd", 0, "secondary logon.exe")
_SerSetState(“secondary logon”, 1)
_servstart(“secondary logon”)
EndIf
提示348行error,表达式错误..
没有secondary logon服务就不能用runas了? 好像用API控制就能成功,用WMI就出错了? 看看看看看看看看看看
页:
[1]