....insert description here....
I need to run a program, launced from a desktop x shortcut object. However, I need it to use a specified directory to run in.

I need to replicate the function of a windows shortcut where in the properties you can set the "Start In:" directory.

Desktop X gives you the following:

%exedir% - returns the executable directory.
%objectdir% - returns the object data directory (where custom files are stored).

as object arguments, but how do I use them? and which one would be the correct one to use?

Comments
on Dec 16, 2005
You can use a windows shortcut. Create the shortcut as you would normally, making sure it runs in the location you want. Then set the target for your DX object to be your shortcut file. I tried it with cmd.exe and it seemed to work fine.
on Dec 16, 2005
I tried that, it changes the shortcut to the excecutable in its installed location.
on Dec 16, 2005
Okay, yeah, sorry. I knew there was a way, but had forgotten. Actually, to get the object to use the shortcut, append .lnk to the name of the shortcut.

For example, if you make a shortcut of cmd.exe, the name will be "cmd.exe". Use "cmd.exe.lnk" in your object target field, and then it will use the shortcut.
on Dec 18, 2005
Thanks, Ill give it a try...
on Dec 20, 2005
It worked, thank you.
on Dec 21, 2005