|
-
Apr 19th, 2002, 10:18 AM
#1
Thread Starter
Junior Member
App.Path???
I want to run a program I made which is pretty much just some forms, but I also have a wav file and a pdf doc. I want to burn the program to a cd, but then the programs want to search my hard drive for the wav and the pdf file, how do I tell it to see the cd? Both the wav and the pdf are linked throught the paramters to my C: drive.
-
Apr 19th, 2002, 10:20 AM
#2
when you are burning your app to cd.. are you just burning the exe file.. or did you compile it into a setup.exe??
-
Apr 19th, 2002, 10:25 AM
#3
Thread Starter
Junior Member
I'm com;iling it, then using a shareware program to run it when the cd's in. That works, and the exe works, but any links to files like the wav and the pdf won't work because I made them to my c drive since I don't know how to map them to the cd
-
Apr 19th, 2002, 10:25 AM
#4
Fanatic Member
If you burned the files to the same folder as the app, use app.path & "\" as the location. If it is in a folder lower then the app (e:\test\ is the location of the app, and e:\test\temp\ is the loacation of the files), add the name of the folder tree they are in to the end or app.path & "\" (in the example, this would just be 'temp\').
-
Apr 19th, 2002, 10:27 AM
#5
Fanatic Member
I forgot to meantion that if you use my way, it can't be stored in a constant.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|