Sign in to follow this  
Followers 0
gcue

compmgmt.msc remote pc + dos window

7 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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)

*sigh*, any ideas?

Share this post


Link to post
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µ¤

Share this post


Link to post
Share on other sites

works great!

i actually used

Run("mmc " & @SystemDir & "\compmgmt.msc /computer:\\" & $asset)

many thanks!

Share this post


Link to post
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
Sign in to follow this  
Followers 0