Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get path of program when program is on another system (Linux Server)

Status
Not open for further replies.

64AMD

Technical User
Mar 15, 2007
28
US
This is a little hard to explain but I will try my best to make sense.

I am a network/computer technician. I am very knowledgeable in VB 6. I have a program that I have written in VB 6. The purpose of this program is to make my life easier when I have to reformat a hard drive and reinstall windows. Instead of navigating in and out of folders on my external hard drive, I can just click the radio button for each program I want to install and click a command button. It really does make things easier and faster.

When I have my external USB hard drive connected directly to the computer this program works fine. I am using the following command to get the local drive letter of the USB drive: Split(App.Path, "\")(0).

However the above command does not work for a network path. I have a Linux Server that will contain all the same programs that the external hard drive does, and in all the same folder paths and program names. I just sync them both about once a week or so.

My questions are following:

1). How can I determine if the program is running locally or from a network?
1). How can I determine the network path.

I will not be nor do I want to map a drive to the network path as once the computer has all the required software install and all the required setting changes made, the network path will not be needed again.

Sorry this is so long and I hope I have made sense, and this is easy to understand what I want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top