Results 1 to 5 of 5

Thread: App.Path???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Location
    NH
    Posts
    25

    Unhappy 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.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    when you are burning your app to cd.. are you just burning the exe file.. or did you compile it into a setup.exe??

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Location
    NH
    Posts
    25
    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

  4. #4
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    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\').
    Involved in: Sentience

  5. #5
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    I forgot to meantion that if you use my way, it can't be stored in a constant.
    Involved in: Sentience

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width