Open Network window with a command?

Page 1 of 3 123 LastLast

  1. Posts : 16
    Windows 7 Ultimate x64
       #1

    Open Network window with a command?


    Hi there, i would like to know if its possible to open up this window with a command in the commandprompt? I was planning on putting it in a batch file and execute the batchfile with a button made in rainmeter. Would be very handy for people who have a customized taskbar. At the moment I've only found a command to open up the Network and Sharing Center (control.exe /name Microsoft.NetworkAndSharingCenter)

    One more question... Is it possible to hide the flashing cmd prompt when executing a command in a batch file without having to download a 3rd party program?
      My Computer


  2. Posts : 8,679
    Windows 10 Pro x64
       #2

    I'm not sure exaclly about that, but you can start Network Connections by searching in Start menu for: ncpa.cpl
      My Computer


  3. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
       #3

    Hello Deathtrip, and welcome to Seven Forums.

    You could use this line in a BAT file to open "Connect To".

    start "" %windir%\explorer.exe shell:::{38A98528-6CBF-4CA9-8DC0-B1E1D10F7B1B}

    Connect To Shortcut - Create in Windows 7
    Last edited by Brink; 19 Nov 2011 at 01:28. Reason: added tutorial link
      My Computer


  4. Posts : 16
    Windows 7 Ultimate x64
    Thread Starter
       #4

    Awsome! Thanks alot, both of you :)
      My Computer


  5. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
       #5

    You're most welcome. I'm glad that we could help. :)
      My Computer


  6. Posts : 16
    Windows 7 Ultimate x64
    Thread Starter
       #6

    I just have to ask, how do you find these commands?
      My Computer


  7. Posts : 8,679
    Windows 10 Pro x64
       #7

    Brink said:
    Hello Deathtrip, and welcome to Seven Forums.

    You could use this line in a BAT file to open "Connect To".

    start "" %windir%\explorer.exe shell:::{38A98528-6CBF-4CA9-8DC0-B1E1D10F7B1B}
    Lol, excellent Brink ! Thank you !
      My Computer


  8. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
       #8

    Deathtrip2k said:
    I just have to ask, how do you find these commands?
    By digging in the registry to find the GUID (CLISD) numbers for various items, then adding the normal part of the command at the front of it to run the GUID number. Working with DOS back in the day helped me to know a lot of commands by heart.

    I have most listed here:

    CLSID Key List for Windows 7
      My Computer


  9. Posts : 16
    Windows 7 Ultimate x64
    Thread Starter
       #9

    Hi again. I have put the command you gave me to good use now and i have made a copy of the original windows internet button from the notification area so you can hide the taskbar for a custom one I have just changed the "not connected" icon to a (imo) better one. All the pillars should work like the normal depending on the signal streangth, but im not sure since i always have a "exillent" signal. The "not connected" icon work atleast so i guess they all do :) When you click on it, it opens up the "Connect to" windows just like the original



    Now i decided to make one for the volume and one to show the hidden icons and i wonder if its possible to get the GUIDs for those aswell? :)

    Thanks again
      My Computer


  10. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
       #10

    Yep, that's the exact same "Connect to" dialog that Windows 7 uses. The command just opens it.

    Here's the one for "Notifications Icons"in a BAT file:
    start "" %windir%\explorer.exe shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}

    Notification Area Icons Shortcut - Create
    For volume in a BAT file
    start "" %windir%\System32\SndVol.exe
    If you wanted to create a shortcut for them instead, just remove start "" from the front of the commands.
    Last edited by Brink; 18 Nov 2011 at 16:01. Reason: updated
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:20.
Find Us