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>
Main()
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)
GUISetState(@SW_SHOW)
; Loop until the user exits.
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Add
Main()
EndSwitch
WEnd
EndFunc