Discussion:
Find like location
(too old to reply)
battles
2012-01-23 13:57:30 UTC
Permalink
I have a program that has links to its .exe in several other folders
(drag the .exe to another folder while holding down the Shift/Control
keys). Upon starting, I need program to determine the folder name of
the link that started it. Is there a way to do this?

Thanks.
PG
2012-01-23 22:13:48 UTC
Permalink
  I have a program that has links to its .exe in several other folders
(drag the .exe to another folder while holding down the Shift/Control
keys).  Upon starting, I need program to determine the folder name of
the link that started it.  Is there a way to do this?
  Thanks.
Hi,

I can't think of a way to do this specifically but I have a
workaround. If you include the PATH to the folder containing the
shortcut as a parameter in your shortcut, you can use ParamStr to
extract this and there you go...

PG
battles
2012-01-24 02:53:58 UTC
Permalink
Post by PG
  I have a program that has links to its .exe in several other folders
(drag the .exe to another folder while holding down the Shift/Control
keys).  Upon starting, I need program to determine the folder name of
the link that started it.  Is there a way to do this?
  Thanks.
Hi,
I can't think of a way to do this specifically but I have a
workaround. If you include the PATH to the folder containing the
shortcut as a parameter in your shortcut, you can use ParamStr to
extract this and there you go...
PG
Thanks all. This sounds like the best idea. I didn't know you
could pass a ParamStr through a link.

Jamie
2012-01-23 23:04:58 UTC
Permalink
Post by battles
I have a program that has links to its .exe in several other folders
(drag the .exe to another folder while holding down the Shift/Control
keys). Upon starting, I need program to determine the folder name of
the link that started it. Is there a way to do this?
Thanks.
not sure exactly the order of what you need however, the
Application.FileName or what ever that was, contains the
folder where the EXE is operating from.

Like I said, I am not sure of what you're doing but, maybe
you're only shifting directories in which case, you can use the
"GetDirectory" to return a string of the current directory...

On a second note, if you are handling the drag drop operation, you
should be able to know exactly where things are?

Jamie
Loading...