MCA,

Right on - the sourcode and exe are on the way (written in C based on above example code). The problem is when you create a shortcut (eg, to notepad) that has a target something like this:

%windir%\system32\notepad.exe

I can't figure out a way to specify %windir% on the command line without the shell translating the environment variable into c:\winnt (before being passed to the exe) ...

I've tried double-quotes and double-percents and all that obvious stuff...

Shawn.