Results 1 to 5 of 5

Thread: app.path problem

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241
    I have a small problem and I'm sure someone out there can easily help me out.

    On the form load of my application I put the app.path return value in a string which I will use afterward. My app is installed in C:\APP. If I go in C:\APP and start APP.EXE, all will work great. However, if I take APP.EXE and set it a shortcut let's say on my quicklaunch bar, app.path will retrieve C:\.

    I would want it to always return C:\APP (Of course, the dir could change, or else I would go with a static string containing "C:\APP".)

    Thanks!

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    I just tried it on a winnt4 machine, and put a shortcut on the desktop. When I ran it from both locations, they both returned the true correct path.

  3. #3
    Guest
    are you actually right clicking an selecting create short cut or are you just dragging the file to your desktop using copy or move(or wherever you put it).Use "create shortcut"

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241
    I'm sure i've used "Create Shortcut"... I'm beginning to ask myself if I re-compiled my .exe correctly. Because I have made modification regarding this error and maybe I just didn't create the new .exe... Now that would be dumb. bbl!

    thanks...

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    app.path works perfectly =)

    Well... That WAS the problem. And I do feel dumb

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