Shortcut to bin

  • Thread starter Thread starter Paul Mars
  • Start date Start date
P

Paul Mars

How can I make a shortcut to the exe in bin. I want this shortcut in root
application dir. However, it can not use the entire path. It needs to just
look from root down two levels to bin, not starting at drive letter. How can
I do this??
Thanks,
paul
 
Hi Paul,

Application.StartupPath gets you directly to the bin sub.

HTH,

Bernie Yaeger
 
I could not get that to work for a shortcut. In addition to
Application.StartupPath, just calling the file by name is enough to get a
file in the bin, but again that does not work for short cuts.

p
 
Hi Paul,

I am not following - is this shortcut on your app's main menu? Are you
speaking about a shortcut on your desktop?

Bernie
 
I give people apps that I write. I place the app in a new root that I
create. In this new root is the VB app, a readme file, and I want a shortcut
to the exe. This way I do not need to tell user to look in the bin and then
look for the exe. As:
NewRoot\AppCreatedRoot\Bin

This might be on a floppy or a CDRW. The user might copy it to their HDD
which might be C:\ or other letter. Floppy is usually A:\, CD-Rom could be
any letter. I want the shortcut in the NewRoot dir to just look from it's
dir to the AppCreatedRoot, then to the Bin, then find the exe.

Some win program file shortcuts use symbols like:
%SystemRoot%\system32\notepad.exe, %HOMEDRIVE%%HOMEPATH%

So I think there maybe some other symbol that may do what I need.

p
 
Hi Paul,

Are you using VS.net, there is in it a deployment tool, as I understand your
question well, that anwers both questions.

Cor
 
Back
Top