Edited by gcue, 10 November 2008 - 01:39 PM.
compmgmt.msc remote pc + dos window
#1
Posted 08 June 2008 - 12:41 PM
#2
Posted 08 June 2008 - 12:52 PM
What style were you trying to change? Any examples?i did a winlist() and used the same title reported from the arraydisplay, cant seem to change the state of any dos windows.. anyone else encounter this issue?
#3
Posted 08 June 2008 - 05:09 PM
Well you seem to have the title and text mixed up, it should behere's two examples
1)
Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset)
the dos window that shows up has a title "C:\WINNT\system32\cmd.exe"
i then run WinSetState("", "C:\WINNT\system32\cmd.exe", @SW_Minimize)
nothing happens
i do a winlist() and verify that im using the write title
2)
Run("c:\program files\winzip\wzunzip.exe -d -e -Jhrs -o " & $avRet[0] & " c:\")
WinSetState("", "c:\program files\winzip\wzunzip.exe", @SW_Minimize)
no dice =/
WinSetState("C:\WINNT\system32\cmd.exe","", @SW_Minimize)
#4
Posted 08 June 2008 - 05:13 PM
i just noticed that if i run a seperate script in conjunction, it will minimize it... interesting.
Well you seem to have the title and text mixed up, it should be
WinSetState("C:\WINNT\system32\cmd.exe","", @SW_Minimize)
Edited by gcue, 08 June 2008 - 05:14 PM.
#5
Posted 10 November 2008 - 01:37 PM
run compmgmt.msc on a remote pc and hide the dos window?
this works but it also hides the computer management window itself:
*sigh*, any ideas?
#6
Posted 10 November 2008 - 01:45 PM
run compmgmt.msc on a remote pc and hide the dos window?
this works but it also hides the computer management window itself:
Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset, "", @SW_HIDE)oÝ÷ Ú&¥²kçm+0'!j[(v¬mÂäjëh×6 Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset) WinSetState("C:\WINNT\system32\cmd.exe", "", @SW_HIDE)oÝ÷ ÚÈ ©ò׳ú®¢×£*.æ§²¶§X¤zØb±«¢+ÙIÕ¸ ÅÕ½ÐíµµèÀäÈíÝ¥¹½ÝÌÀäÈíÍåÍÑ´ÌÈÀäÈí½µÁµµÐ¹µÍ½½µÁÕÑÈèÀäÈìÀäÈìÅÕ½Ðì µÀìÀÌØíA 9 µ¤
#7
Posted 10 November 2008 - 01:52 PM
i actually used
Run("mmc " & @SystemDir & "\compmgmt.msc /computer:\\" & $asset)
many thanks!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





