Jump to content

want to create GUI window for connecting network share path

Recommended Posts


Actually i'm looking for GUI window,which i can add share folder path names in the list and when ever i need i should connect to selected path by clicking connect button.

-I'm nt sure wht function should i add to connect.


I attached the screen shot which i created


Basically i'm looking to add all the network share path in the list,which i have access .so that i can connect easily.


#include <GUIConstantsEx.au3>
#include <GuiListBox.au3>
#include <MsgBoxConstants.au3>
Func Main()
Local $iGUIWidth = 600, $iGUIHeight = 500
Local $OK,$Add,$Remove
Local $idListBox,$Add,$Connect
GUICreate("New GUI", $iGUIWidth, $iGUIHeight)
$idListBox = GUICtrlCreateList("List", 10, 10, 400, 200)
$Connect = GUICtrlCreateButton("Connect", 500, 10, 70, 25)
$Add = GUICtrlCreateButton("Add", 500, 40, 70, 25)
$OK=GUICtrlCreateButton("OK", 500, 100, 70, 25)
$Remove=GUICtrlCreateButton("Remove", 500, 200, 70, 25)
; Loop until the user exits.
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
        Case $Add



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.