473,800 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programmaticall y 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 programmaticall y. 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:\WINDO WS\system32\com pmgmt.msc")

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

Michael
Jul 8 '06
10 6217
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("System Root") when you change the
path settings :-)
regards

Michel Posseth [MCP]



"Theo Verweij" wrote:
Or to be completely sure:
System.Diagnost ics.Process.Sta rt(Environ("Sys temRoot"&"\syst em32\compmgmt.m sc")

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\syst em32\compmgmt.m sc

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.Diagnost ics.Process.Sta rt("compmgmt.ms c")
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.m icrosoft.com>
schreef in bericht
news:43******** *************** ***********@mic rosoft.com...
Thank you everyone, but especially thank you Theo. What you suggested
worked.

Michael

"Theo Verweij" wrote:

use:
System.Diagnos tics.Process.St art("C:\WINDOWS \system32\compm gmt.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 programmaticall y. 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:\WINDO WS\system32\com pmgmt.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
16676
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 frm.Properties If prp.Name = rst!PropName Then prp = rst!ChangeTo
2
5727
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 password on opening called "allow" c) to link 5 Tables in the PMF Database ... Table1,2,3,4,5 How do I accomplish the above programmatically using VBA ? Thx & Best Rgds,
14
49953
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. Setting AutoScrollPosition doesn't seem to work either. The values I set are not honored, and are apparently modified by the framework. By the way, what I am trying to implement is the behavior seen in Notepad (and other Windows apps) where you...
13
2581
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
6831
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 way is using javascript - does anybody have a sample for this ? Thanks
4
3093
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 use. The equivalent GUI steps would be, open IIS, select my application->properties, app configuration, in whildcard application mapping type the path to aspnet_isapi.dll. Thanks, Jingmei Li
4
2644
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 save the attachment to a set location? Many thanks for pointing me in the right direction.
0
1985
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 folder(ie. Scheduled Taks folder) is opened,but what I want is to open the Add Scheduled Task wizard in it.Is there any run command to do that? Also if I am able to open the Scheduled Task wizard like this is there any way by which I can...
11
2971
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, having hyperlinks to the corresponding full size images. Can anybody point me to locations in MSDN or elsewhere giving the references to attach, the commands & objects for creating or opening the pages and possibly available classes? I have done...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10501
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10273
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10250
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.