Solved

Visual Basic path

Posted on 2012-03-16
1
207 Views
Last Modified: 2012-08-13
I have a windows application that uses an external database and calls an external application to run. I need this application to run from a thumb drive so I cannot hard code the path for the database and external application. How do I determine that path for the thumb drive this application will run from and not the traditional location of the temporary folder that windows runs it from.
0
Comment
Question by:rawilken
1 Comment
 
LVL 5

Accepted Solution

by:
Aruiz04 earned 500 total points
ID: 37731699
I would use an OpenFileDialog, select the application you want to run and save the application's path to a file for later retrieval. Once saved on a file, everytime you open your first application, read the file, check if the file exists and run the second application, if the second application's path has changed it no longer exists so open the openfiledialog and browse for it, save the path again to the file and execute the second application.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question