eryksun added the comment:

How about using hard links (mklink /H) instead? It's a minor issue, but there's 
a bug in Explorer that breaks opening symbolic links to EXE, COM, CMD, and BAT 
files (exefile, comfile, cmdfile, batfile). Explorer displays the error message 
"the specified path does not exist". These file types have shell\open\command 
set to "%1" %*, i.e. the file itself (%1) is used as the command. 

    C:\>reg query hkcr\exefile\shell\open\command /ve
    
    HKEY_CLASSES_ROOT\exefile\shell\open\command
        (Default)    REG_EXPAND_SZ    "%1" %*

I assume that's because these file types can be passed directly to 
CreateProcess. However, the Explorer bug isn't a problem with CreateProcess, or 
even ShellExecuteEx. Maybe it's due to an overly strict security policy. 
Anyway, my 2 cents is use hard links.

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21506>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to