Jump to content

compmgmt.msc remote pc + dos window


Recommended Posts

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?

Edited by gcue
Link to comment
Share on other sites

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?

What style were you trying to change? Any examples?
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

here'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 =/

Well you seem to have the title and text mixed up, it should be

WinSetState("C:\WINNT\system32\cmd.exe","", @SW_Minimize)

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

ya i had already tried it that way too =/

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
Link to comment
Share on other sites

  • 5 months later...

has anyone been able to get this working?

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)

*sigh*, any ideas?

Link to comment
Share on other sites

has anyone been able to get this working?

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µ¤
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...