PDA

View Full Version : Using ListBox to map network drive and run app



morci
01-05-2006, 03:36 PM
Hi All,

Here's what i want to do: (with small autoplay app)

1 Have list box that displays 'select option here'
2 From list box shows list like this:
1 'HR - NSW'
2 'HR - VIC'
3 'HR - QLD'

When you click on 1 'HR - NSW' - it prepares to MAP a network drive H:\server1\hrshare$
When you click on 2 'HR - VIC' - it prepares to MAP a network drive H:\server2\hrshare$
When you click on 3 'HR - QLD' - it prepares to MAP a network drive H:\server3\hrshare$

3 Have a 'go' button - that will use the selection and map the network drive.
4 Autoplay then launches application in c:\Program Files\HR\Hr.exe

5 Autoplay minimizes


As a Bonus, is it possible to make it that you cant launch the program to select another option unless you quit the program first? It disables the 'go' button until you close hr.exe program?


I find this impossible to do with my limited knowledge of listbox and v6.0

Could i have any ideas how to get this started?

Many Thanks to all for your patience:
Morci