Solved

Running program from Cd

Posted on 1998-10-05
2
152 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 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