Jump to content

yejier

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by yejier

  1. Great job,but still need more examples to illustrate the usage.JRowe 、wraithdu:)
  2. I'm poor in English I think that,"test.web" have some wrong. <form action="test.web" method="POST"> <button name="go" type=submit value="go">GO!</button> <button>Reset</button>
  3. $strComputer = "localhost" $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\cimv2") $colItems = $objWMIService.ExecQuery("Select * from Win32_NetworkLoginProfile") For $objItem in $colItems MsgBox(0, 0, $objItem.Name) MsgBox(0, 0, $objItem.LastLogon) Next
  4. if you use objname($loginprofiles) before for....in....next will return value but between in for...in..next objname($loginprofiles) have no value
  5. sorry,I'm poor in English,I have a trouble with "objget" and "for...in...next". ' VBScript。 Set LoginProfiles = GetObject("winmgmts:").InstancesOf ("Win32_NetworkLoginProfile") for each Profile in LoginProfiles WScript.Echo Profile.Name WScript.Echo Profile.LastLogon next 'au3. $loginprofiles=ObjGet("winmgmts:Win32_NetworkLoginProfile") ;MsgBox(0,"",$loginprofiles) For $profile In $loginprofiles ;MsgBox(0,"",$loginprofiles) $text=String($profile.Name) MsgBox(0,"", $text) ;MsgBox(0,"", $profile.LastLogon) ;MsgBox(0,"",objname($loginprofiles)) Next but, why $profile.Name have no value?
×
×
  • Create New...