Solved

Running program from Cd

Posted on 1998-10-05
2
150 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
Comment Utility
Adjusted points to 200
0
 
LVL 2

Accepted Solution

by:
dabellei earned 200 total points
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

15 Experts available now in Live!

Get 1:1 Help Now