Jump to content



Photo

compmgmt.msc remote pc + dos window


  • Please log in to reply
6 replies to this topic

#1 gcue

gcue

    just a wannabe

  • Active Members
  • PipPipPipPipPipPip
  • 1,629 posts

Posted 08 June 2008 - 12:41 PM

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, 10 November 2008 - 01:39 PM.








#2 martin

martin

    ~~\o/~~~/0\=¬''~~~

  • MVPs
  • 7,199 posts

Posted 08 June 2008 - 12:52 PM

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.

#3 martin

martin

    ~~\o/~~~/0\=¬''~~~

  • MVPs
  • 7,199 posts

Posted 08 June 2008 - 05:09 PM

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.

#4 gcue

gcue

    just a wannabe

  • Active Members
  • PipPipPipPipPipPip
  • 1,629 posts

Posted 08 June 2008 - 05:13 PM

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, 08 June 2008 - 05:14 PM.


#5 gcue

gcue

    just a wannabe

  • Active Members
  • PipPipPipPipPipPip
  • 1,629 posts

Posted 10 November 2008 - 01:37 PM

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?

#6 Briegel

Briegel

    Polymath

  • Active Members
  • PipPipPipPip
  • 237 posts

Posted 10 November 2008 - 01:45 PM

[quote name='gcue' post='602748' date='Nov 10 2008, 02:37 PM']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…µ”¤


#7 gcue

gcue

    just a wannabe

  • Active Members
  • PipPipPipPipPipPip
  • 1,629 posts

Posted 10 November 2008 - 01:52 PM

works great!

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