Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8205203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:08:41+00:00 2026-06-07T08:08:41+00:00

This script is supposed to open both Windows shell Status and Properties dialogs of

  • 0

This script is supposed to open both Windows shell Status and Properties dialogs of the first found network connection which is enabled or connected. However, only the Properties dialog is opened. The verb for the Status dialog is already correct, which is “Stat&us”. The script was tested and will be used under Windows XP Pro SP3 32-Bit. It was tested with a connected 3G dialup and a LAN Loopback. Both have the same problem.

dim a,b,c
set a=createobject("shell.application")
set b=a.namespace(0).parsename("::{7007ACC7-3202-11D1-AAD2-00805FC1270E}").getfolder
for i=0 to (b.items.count-1)
  set c=b.items.item(i)
  for j=0 to (c.verbs.count-1)
    'only process connected/enabled
    if (lcase(c.verbs.item(j)) = "disc&onnect") or (lcase(c.verbs.item(j)) = "disa&ble") then
      'open status and properties dialogs
      c.invokeverb("Stat&us")     'this doesn't work
      c.invokeverb("P&roperties") 'this one works
      msgbox "Press OK to close all and exit"
      wscript.quit
    end if
  next
next
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:08:43+00:00Added an answer on June 7, 2026 at 8:08 am

    In Windows XP there is a bug whose effect requires the Status verb to be invoked from within the Explorer process. Since WScript/CScript is not a child of the Explorer process, any attempt to invoke the status verb with prove futile despite the lack of any apparent errors. This bug appears to have been fixed in later versions as the script below is tested and working in Vista x64.

    Set objShell = CreateObject("Shell.Application")
    Set objShellFolder = objShell.Namespace(0).ParseName("::{7007ACC7-3202-11D1-AAD2-00805FC1270E}").GetFolder 
    
    For Each objShellFolderItem in objShellFolder.Items
        Set colShellFolderItemVerbs = objShellFolderItem.Verbs
    
        For Each objShellFolderItemVerb in colShellFolderItemVerbs
            strVerb = objShellFolderItemVerb.Name
            If (strVerb = "C&onnect / Disconnect") Then
                objShellFolderItem.InvokeVerb("Properties")
                objShellFolderItem.InvokeVerb("Status")
    
                MsgBox "Press OK to close and exit"
                WScript.Quit(0)
            End If
        Next
    Next
    

    Option 1

    Does that mean that you’re out of luck? Not entirely. I have two different suggestions for you. The first uses a little trickery. Status is the default action for any network connection while it is in a connected state. Open up your network connections, right-click the connection your wish to monitor and choose Create Shortcut. You can place the shortcut anywhere you like. By default it will be named something like “Wireless Network Connection – Shortcut.lnk” on your Desktop. Typing that on the command line or via the Run or Exec methods in your script will do exactly what you need. I tried playing around with doing this all via scripting but ran into issues tryint to automate the Create Shortcut verb.

    Option 2

    A second option is also a bit of a workaround but may work if your 3G connection uses the dialup networking. The command line rundll32.exe rnaui.dll,RnaDial {name of connection to establish} will open the dialog to connect, however, if already connected, it opens the Status dialog for the connection. You could then try a script like this:

    Set objShell = CreateObject("Shell.Application")
    Set objShellFolder = objShell.Namespace(0).ParseName("::{7007ACC7-3202-11D1-AAD2-00805FC1270E}").GetFolder
    
    For Each objShellFolderItem in objShellFolder.Items
        strConnection = objShellFolderItem.Name
        strCommandLine = "rundll32.exe rnaui.dll,RnaDial " & Chr(34) & strConnection & Chr(34)
    
        Set colShellFolderItemVerbs = objShellFolderItem.Verbs
    
        For Each objShellFolderItemVerb in colShellFolderItemVerbs
            strVerb = objShellFolderItemVerb.Name
            If (strVerb = "C&onnect / Disconnect") Then
                objShellFolderItem.InvokeVerb("Properties")
                CreateObject("WScript.Shell").Run strCommandLine
    
                MsgBox "Press OK to close and exit"
                WScript.Quit(0)
            End If
        Next
    Next
    

    Option 3

    A final option would be to use WMI to display the information about your network connection. This is a more traditional scripting approach.

    In any case, I hope this helps out. Don’t forget to change the verbs as required. They do change from one version of Windows to the next.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Perl script, that's supposed to match this string: Sometimes, he says
I have this jquery script which suppose to hide/show div element base on the
This script works fine on single click but on double click it shows both
I'm having some trouble with my script. It's supposed to open a website trough
This is my first question. My python script opens and reads from a present
I have the following code, which is supposed to open a modal dialog with
Suppose I get, on a page, this simple html/script : <a id=hey href=#>try</a> var
Suppose I have something like this page: <noscript>You need JS for this page</noscript> <script>
This script saves the files as /home/name/main/all my files and stuff . I want
This script cannot find bannersize unless I write <div id=bannersize></div> before the javascript. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.