|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Programmatically open compmgmt.mscThank 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 eSolTec wrote:
Show quoteHide quote >Thank you in advance for any and all assistance. I'm building a technician's Shell("C:\WINDOWS\system32\compmgmt.msc /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: T 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 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 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 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 > > 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 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 > 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 >> 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 > > 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 > > > > >
When the messagebox disappears, it leaves a white square
Window Form refresh Windows Image Acquisition (WIA) Taking black photos Scrolling DataGrid's selected row out of view selects next control How to Get DataSet ot DataTable from DataGrid Limit bandwith of my application VB Net 2005 and Email! combobox view display width question Empty Recycle bin - VB.NET code .net remoting question |
|||||||||||||||||||||||