473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Programmatically open compmgmt.msc

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
Jul 8 '06 #1
10 6157
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

Jul 8 '06 #2
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
Jul 8 '06 #3
T,

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

Michael

"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

Jul 8 '06 #4
IWDU15,

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

Michael

"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
Jul 8 '06 #5
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
Jul 9 '06 #6
use: System.Diagnostics.Process.Start("C:\WINDOWS\syste m32\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
Jul 9 '06 #7
Thank you everyone, but especially thank you Theo. What you suggested worked.

Michael

"Theo Verweij" wrote:
use: System.Diagnostics.Process.Start("C:\WINDOWS\syste m32\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
Jul 9 '06 #8
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)" <eS*************@discussions.microsoft.com>
schreef in bericht
news:43**********************************@microsof t.com...
Thank you everyone, but especially thank you Theo. What you suggested
worked.

Michael

"Theo Verweij" wrote:
>use:
System.Diagnostics.Process.Start("C:\WINDOWS\syst em32\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

Jul 9 '06 #9
Or to be completely sure:
System.Diagnostics.Process.Start(Environ("SystemRo ot"&"\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)" <eS*************@discussions.microsoft.com>
schreef in bericht
news:43**********************************@microsof t.com...
>Thank you everyone, but especially thank you Theo. What you suggested
worked.

Michael

"Theo Verweij" wrote:
>>use:
System.Diagnostics.Process.Start("C:\WINDOWS\sys tem32\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

Jul 10 '06 #10
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]



"Theo Verweij" wrote:
Or to be completely sure:
System.Diagnostics.Process.Start(Environ("SystemRo ot"&"\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)" <eS*************@discussions.microsoft.com>
schreef in bericht
news:43**********************************@microsof t.com...
Thank you everyone, but especially thank you Theo. What you suggested
worked.

Michael

"Theo Verweij" wrote:

use:
System.Diagnostics.Process.Start("C:\WINDOWS\syst em32\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
Jul 12 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: deko | last post by:
I'm trying to find a way to set form/control properties programmatically. In a nut shell: 1. Open a database 2. Open a form in design view 3. Do something like this: For Each prp In...
2
by: Prakash Wadhwani | last post by:
I have an Access Database called "TEMP" On Opening the "TEMP" Database, I need to use VBA (programmatically): a) to connect to another database called "PMF" b) the PMF database requires a...
14
by: Open Wound | last post by:
What method can I call to programmatically scroll a panel? There is ScrollControlIntoView() but I don't have a control to scroll into view. I just want the panel to scroll up by 100 pixels. ...
13
by: Alexandra | last post by:
Hi, I have a hidden system file that I need to read. I am logged in as an administrator. I can not change the file attributes using the windows explorer.
5
by: Carlo Marchesoni | last post by:
From an aspx page (A.aspx) I open another one (B.aspx - for table lookup). When the user selects an entry in B.aspx I would like to force a button's event in A.aspx to be fired. I guess the only...
4
by: BentleyInc | last post by:
I'm trying to find a way to add a whildcard application mapping to aspnet_isapi.dll in IIS programmatically.... been looking into IIS administrator reference but didn't find the right function to...
4
by: PollyAnna | last post by:
Hi, I am fairly new to .Net and would appreciate some help. How do I open an email and its attachment programmatically. Once I have done this, is it a straightforward operation to then just...
0
by: Paulson | last post by:
Dear Freinds I want to make a program that acts as a reminder for the users.I need to open up the Scheduled task wizard programmatically.If you type Tasks in the run command the Tasks...
11
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.