Home All Groups Group Topic Archive Search About

Programmatically open compmgmt.msc

Author
8 Jul 2006 4:55 PM
eSolTec, Inc. 501(c)(3)
Thank you in advance for any and all assistance. I'm building a technician's
tool and I'm trying to create a Jump Panel of buttons to the Windows System32
folder to open files programmatically. I have the majority of the program
files opening except the Microsoft Computer Management console.

I've tried in the button click event
       Shell("C:\WINDOWS\system32\compmgmt.msc")

and nothing happens. No open program, no errors nothing.

Michael

Author
8 Jul 2006 7:04 PM
tomb
eSolTec wrote:

Show quoteHide quote
>Thank you in advance for any and all assistance. I'm building a technician's
>tool and I'm trying to create a Jump Panel of buttons to the Windows System32
>folder to open files programmatically. I have the majority of the program
>files opening except the Microsoft Computer Management console.
>
>I've tried in the button click event
>       Shell("C:\WINDOWS\system32\compmgmt.msc")
>
>and nothing happens. No open program, no errors nothing.
>
>Michael

>
Try this:

Shell("C:\WINDOWS\system32\compmgmt.msc /s")

T
Author
8 Jul 2006 7:13 PM
iwdu15
or you could try using the Process Class

Dim proc as new Process
Dim procSI as new ProcessStartInfo("C:\WINDOWS\system32\compmgmt.msc /s")

proc.StartInfo = procSI
proc.Start()


that should work too
--
-iwdu15
Author
8 Jul 2006 7:56 PM
eSolTec, Inc. 501(c)(3)
IWDU15,

Thank you for your reply, but it didn't work either.

Michael

Show quoteHide quote
"iwdu15" wrote:

> or you could try using the Process Class
>
> Dim proc as new Process
> Dim procSI as new ProcessStartInfo("C:\WINDOWS\system32\compmgmt.msc /s")
>
> proc.StartInfo = procSI
> proc.Start()
>
>
> that should work too
> --
> -iwdu15
Author
9 Jul 2006 4:41 AM
iwdu15
looking at my post, i think i made a typo....there shouldnt be a "/s" after
the process name...try this instead

Dim proc as new Process
Dim procSI as new ProcessStartInfo("C:\WINDOWS\system32\compmgmt.msc")

proc.StartInfo = procSI
proc.Start()

--
-iwdu15
Author
8 Jul 2006 7:55 PM
eSolTec, Inc. 501(c)(3)
T,

Thank you for the tip. I tried it and no success.

Michael

Show quoteHide quote
"tomb" wrote:

> eSolTec wrote:
>
> >Thank you in advance for any and all assistance. I'm building a technician's
> >tool and I'm trying to create a Jump Panel of buttons to the Windows System32
> >folder to open files programmatically. I have the majority of the program
> >files opening except the Microsoft Computer Management console.
> >
> >I've tried in the button click event
> >       Shell("C:\WINDOWS\system32\compmgmt.msc")
> >
> >and nothing happens. No open program, no errors nothing.
> >
> >Michael
> > 
> >
> Try this:
>
> Shell("C:\WINDOWS\system32\compmgmt.msc /s")
>
> T
>
>
Author
9 Jul 2006 1:18 PM
Theo Verweij
use:  System.Diagnostics.Process.Start("C:\WINDOWS\system32\compmgmt.msc")


eSolTec wrote:
Show quoteHide quote
> Thank you in advance for any and all assistance. I'm building a technician's
> tool and I'm trying to create a Jump Panel of buttons to the Windows System32
> folder to open files programmatically. I have the majority of the program
> files opening except the Microsoft Computer Management console.
>
> I've tried in the button click event
>        Shell("C:\WINDOWS\system32\compmgmt.msc")
>
> and nothing happens. No open program, no errors nothing.
>
> Michael
Author
9 Jul 2006 2:01 PM
eSolTec, Inc. 501(c)(3)
Thank you everyone, but especially thank you Theo. What you suggested worked.

Michael

Show quoteHide quote
"Theo Verweij" wrote:

> use:  System.Diagnostics.Process.Start("C:\WINDOWS\system32\compmgmt.msc")
>
>
> eSolTec wrote:
> > Thank you in advance for any and all assistance. I'm building a technician's
> > tool and I'm trying to create a Jump Panel of buttons to the Windows System32
> > folder to open files programmatically. I have the majority of the program
> > files opening except the Microsoft Computer Management console.
> >
> > I've tried in the button click event
> >        Shell("C:\WINDOWS\system32\compmgmt.msc")
> >
> > and nothing happens. No open program, no errors nothing.
> >
> > Michael
>
Author
9 Jul 2006 6:04 PM
Michel Posseth [MCP]
Well it only has one flaw

what if the user does not have a path

C:\WINDOWS\system32\compmgmt.msc

on one of Computers for instance the windows path is

C:\WIN\system32\compmgmt.msc

And on another one it is

D:\WIN\system32\compmgmt.msc

you would better use

System.Diagnostics.Process.Start("compmgmt.msc")


This will always work ( unless someone messed with the evironment variabels
, however this is not your problem

regards

Michel Posseth [MCP]


"eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com>
schreef in bericht
Show quoteHide quote
news:43035E6F-81CE-4041-B4D3-DD44FFAC3273@microsoft.com...
> Thank you everyone, but especially thank you Theo. What you suggested
> worked.
>
> Michael
>
> "Theo Verweij" wrote:
>
>> use:
>> System.Diagnostics.Process.Start("C:\WINDOWS\system32\compmgmt.msc")
>>
>>
>> eSolTec wrote:
>> > Thank you in advance for any and all assistance. I'm building a
>> > technician's
>> > tool and I'm trying to create a Jump Panel of buttons to the Windows
>> > System32
>> > folder to open files programmatically. I have the majority of the
>> > program
>> > files opening except the Microsoft Computer Management console.
>> >
>> > I've tried in the button click event
>> >        Shell("C:\WINDOWS\system32\compmgmt.msc")
>> >
>> > and nothing happens. No open program, no errors nothing.
>> >
>> > Michael
>>
Author
10 Jul 2006 2:45 PM
Theo Verweij
Or to be completely sure:
System.Diagnostics.Process.Start(Environ("SystemRoot"&"\system32\compmgmt.msc")

Which will work as long as windows works, so you don't have the
discussion who's problem it is.


Michel Posseth [MCP] wrote:
Show quoteHide quote
> Well it only has one flaw
>
> what if the user does not have a path
>
> C:\WINDOWS\system32\compmgmt.msc
>
> on one of Computers for instance the windows path is
>
> C:\WIN\system32\compmgmt.msc
>
> And on another one it is
>
> D:\WIN\system32\compmgmt.msc
>
> you would better use
>
> System.Diagnostics.Process.Start("compmgmt.msc")
>
>
> This will always work ( unless someone messed with the evironment variabels
> , however this is not your problem
>
> regards
>
> Michel Posseth [MCP]
>
>
> "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com>
> schreef in bericht
> news:43035E6F-81CE-4041-B4D3-DD44FFAC3273@microsoft.com...
>> Thank you everyone, but especially thank you Theo. What you suggested
>> worked.
>>
>> Michael
>>
>> "Theo Verweij" wrote:
>>
>>> use:
>>> System.Diagnostics.Process.Start("C:\WINDOWS\system32\compmgmt.msc")
>>>
>>>
>>> eSolTec wrote:
>>>> Thank you in advance for any and all assistance. I'm building a
>>>> technician's
>>>> tool and I'm trying to create a Jump Panel of buttons to the Windows
>>>> System32
>>>> folder to open files programmatically. I have the majority of the
>>>> program
>>>> files opening except the Microsoft Computer Management console.
>>>>
>>>> I've tried in the button click event
>>>>        Shell("C:\WINDOWS\system32\compmgmt.msc")
>>>>
>>>> and nothing happens. No open program, no errors nothing.
>>>>
>>>> Michael
>
>
Author
12 Jul 2006 10:14 AM
M. Posseth
well ...... :-)

the path environment variabel always points to system32

start , configuration , system , advanced tab , environment variabels

otherwise all executables that are located there wouldn`t start withoput
explicitly calling them with there full location

cmd , msconfig , ping etc etc etc etc etc

so in my opinion it is not necesary to call them with there full path as
someone has then messed so much with windows that it wouldn`t even run
properly ( maybe cripled )

I wonder what will happen with  Environ("SystemRoot")  when you change the
path settings :-)


regards

Michel Posseth [MCP]









Show quoteHide quote
"Theo Verweij" wrote:

> Or to be completely sure:
> System.Diagnostics.Process.Start(Environ("SystemRoot"&"\system32\compmgmt.msc")
>
> Which will work as long as windows works, so you don't have the
> discussion who's problem it is.
>
>
> Michel Posseth [MCP] wrote:
> > Well it only has one flaw
> >
> > what if the user does not have a path
> >
> > C:\WINDOWS\system32\compmgmt.msc
> >
> > on one of Computers for instance the windows path is
> >
> > C:\WIN\system32\compmgmt.msc
> >
> > And on another one it is
> >
> > D:\WIN\system32\compmgmt.msc
> >
> > you would better use
> >
> > System.Diagnostics.Process.Start("compmgmt.msc")
> >
> >
> > This will always work ( unless someone messed with the evironment variabels
> > , however this is not your problem
> >
> > regards
> >
> > Michel Posseth [MCP]
> >
> >
> > "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com>
> > schreef in bericht
> > news:43035E6F-81CE-4041-B4D3-DD44FFAC3273@microsoft.com...
> >> Thank you everyone, but especially thank you Theo. What you suggested
> >> worked.
> >>
> >> Michael
> >>
> >> "Theo Verweij" wrote:
> >>
> >>> use:
> >>> System.Diagnostics.Process.Start("C:\WINDOWS\system32\compmgmt.msc")
> >>>
> >>>
> >>> eSolTec wrote:
> >>>> Thank you in advance for any and all assistance. I'm building a
> >>>> technician's
> >>>> tool and I'm trying to create a Jump Panel of buttons to the Windows
> >>>> System32
> >>>> folder to open files programmatically. I have the majority of the
> >>>> program
> >>>> files opening except the Microsoft Computer Management console.
> >>>>
> >>>> I've tried in the button click event
> >>>>        Shell("C:\WINDOWS\system32\compmgmt.msc")
> >>>>
> >>>> and nothing happens. No open program, no errors nothing.
> >>>>
> >>>> Michael
> >
> >
>