[VB] Open the Device Manager
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: [VB] Open the Device Manager

  1. #1
    Join Date
    May 2002
    Location
    Minneapolis
    Posts
    98

    [VB] Open the Device Manager

    Hello All,

    I am looking for a shell call or something that will open my device manager..


    thanks in advanced

  2. #2
    Join Date
    Jun 2012
    Posts
    2

    Re: [VB] Open the Device Manager

    Device manger is a .msc file that is opened with Microsoft Managment Console (mmc.exe)
    I am bringing data in to an Excel sheet via Winwedge using a USB/RS-232 converted. I wanted a button on the sheet to open the device manager so the user could find the com port.
    The following macro worked for me.

    Sub Open_Device_Mgr()
    Dim RetValue As Long
    RetValue = Shell("C:\WINDOWS\system32\mmc.exe C:\WINDOWS\system32\devmgmt.msc")
    End Sub

    (only 8 years later)

  3. #3
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: [VB] Open the Device Manager

    Well, you actually SAW that the thread is 8 years old. So why did you still reply to it?

  4. #4
    Join Date
    Jun 2012
    Posts
    2

    Re: [VB] Open the Device Manager

    I was looking for an answer to the same problem. When I searched for an answer the only hits I found were to the questions, but no answers. So after I researched what a .msc file was and realized what it took to launch it, I answered one of them for future reference.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center