Creating a shortcut without a drive letter
Posted on 2007-08-11
I am creating a program that will reside on a USB key. The program has a single EXE and multiple files that contain settings.
Here is the file structure:
I want to create a shortcut in W:\Widget\ for the EXE paired with the settings.
So in the shortcut (saved in W:\Widget) it would have:
Shortcut: W:\Widget\Settings\program.exe settings1.ini
Starting Folder: W:\Widget\
(Same shortcut for settings2 and settings3)
So here's the problem:
When these are stored on a USB key, the drive letter can change on each computer. In a shortcut, how can I create a shortcut without referencing a drive letter?
I tried .\ and ..\ and Windows won't let it work.
Shortcut: .\Widget\Settings\program.exe settings1.ini
Starting Folder: .\Widget\