Archive: Setting the Working Directory on a Shortcut


Setting the Working Directory on a Shortcut
Hi All--

Thanks for the help I've recieved thus far. How do I set the working directory on a shortcut (the "Start In" edit control on the file's properties)? It always seems to use the start menu program group. this will cause problems with the application that I'm installing. I looked at the docu for the CreateShortCut command and it doesn't seem to cover setting this particular attribute.

Thanks for any help you may have to offer,

--Allen


:rolleyes:

From CreateShortcut in the manual:

$OUTDIR is used for the working directory. You can change it by using SetOutPath before creating the Shortcut.
-Stu

:eek:

How the hell did I miss that?

Thanks for the pointer. Sorry to bother you all.

Allen


No matter, people seem to ask it quite often even though it's in writing.

-Stu


I think what threw me is that when EclipseNSIS created the project, it set $OUTDIR to $SMPROGRAMS folder in the spot where it set up a couple of shortcuts automatically.