Solved

Running program from Cd

Posted on 1998-10-05
2
154 Views
Last Modified: 2010-04-30
I have a VB program that contains .jpg. I have created an install and can install it onto a computer and use it no problem, but now users want to run it soley from the CD. My problem is the program is looking for the pictures on the C: drive. I changed it to the D: drive but then relized that my drive is E, and others vary.  Can I set a global path somehow? How do I do this.  
0
Comment
Question by:pells
2 Comments
 

Author Comment

by:pells
ID: 1438231
Adjusted points to 200
0
 
LVL 2

Accepted Solution

by:
dabellei earned 200 total points
ID: 1438232
If you put your .jpg in the path of the applications the use

app.path & "xxx.jpg"

same if you put them in a sub directory

app.path & "\sub\xxx.jpg"
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 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