Windows itself add after the full path of the executable file the "%1" variable, witch should pass the full path and filename of the file user clicked on. So far, so good. However a nightmare begin, when this don't work and the application refuse to accept anything EXCEPT the filename. Then it looks like it is IMPOSSIBLE to setup in Windows, because no-one of the variables listed that I found seems to pass the much desired filename only:
%* - replace with all parameters
%~ - replace with all parmaters starting with and following the second parameter
%0 or %1 the first file parameter. For example “C:\Users\Eric\Destop\New Text Document.txt”.
%<n> (where N is 2 - 9), replace with the nth parameter
%s – show command
%h – hotkey value
%i – IDList stored in a shared memory handle is passed here.
%l – long file name form of the first parameter for win32 apps, win16 get short file name. Specifying %L is preferred.
%d – desktop absolute parsing name of the first parameter (for items that don’t have file system paths) (this won't work either)
%v – for verbs that are none implies all, if there is no parameter passed this is the working directory
%w – the working directory
I was not managed to find anything usefull. The app in qestion is eDuke32... When starting demo as by shel command: eduke32 -nologo -Ddemo8.dmo
...then everything works just fine. God forbid you expect this works as when you click on the file in windows...
Or can it be done?
PS. looked there: http://www.microsoft...t.mspx?mfr=true
...and find things like "%~n1 - Expands %1 to a file name." or "%~nx1" - Expands %1 to a file name and extension." ...however neither "%~n1", "%~nx1", "%1%~n1" or "%1%~nx1" works... That suxx.
Edited by caps_buster, 25 March 2013 - 11:14 AM.