Solved

Visual Basic path

Posted on 2012-03-16
1
202 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now