How can I pass command-line arguments via file association in Vista 64?

后端 未结 4 800
孤独总比滥情好
孤独总比滥情好 2021-02-10 01:11

How can one pass command line arguments via file association in Vista 64?

I recently built a PC running Vista Ultimate 64-bit. I noticed several of the Perl scripts I t

4条回答
  •  天涯浪人
    2021-02-10 01:35

    Don't know about Vista and 64bits, but under "classic" versions of Windows you can edit the registry:

    HKEY_CLASSES_ROOT\.pl 
    

    contains default string "Perl"

    HKEY_CLASSES_ROOT\Perl\shell\open\command 
    

    contains the default string:

    "C:\path-to\Perl\bin\perl.exe" "%1" %*
    

    where %* is a macro for all parameters following the first. Probably the %* is missing.

提交回复
热议问题