看了下wmi还是转不成功au3,各位帮下
用于设置打印机的,各位帮忙转下!strComputer = "."
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshNETWORK = WScript.CreateObject("WScript.Network")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters =objWMIService.ExecQuery _
("Select * from Win32_Printer")
关键是这个Set WshNETWORK = WScript.CreateObject("WScript.Network")不知道怎么换?
[ 本帖最后由 wolfxiong 于 2009-2-25 23:09 编辑 ] 顶下!!!!:face (32): 你感到绝望了没有?呵呵·
页:
[1]