|
-
Jun 21st, 2000, 03:51 AM
#1
Thread Starter
Addicted Member
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!
-
Jun 21st, 2000, 03:56 AM
#2
Lively Member
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.
-
Jun 21st, 2000, 04:17 AM
#3
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"
-
Jun 21st, 2000, 04:20 AM
#4
Thread Starter
Addicted Member
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...
-
Jun 21st, 2000, 09:49 PM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|