Solved

Visual Basic path

Posted on 2012-03-16
1
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

630 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