How do I make Perl scripts recognize parameters in the Win32 cmd console?

后端 未结 9 1240
时光说笑
时光说笑 2020-12-03 12:46

When I invoke my Perl scripts in the Windows environment without invoking perl first, the parameters are not passed to my script.

For example,



        
9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 13:20

    I found this additional location in the registry that had to be updated before it would work for me. Note: The name after HKEY_USERS may be different on your machine.


    Add %* to default string:


    HKEY_USERS\S-1-5-21-1399284159-2775065347-350672949-4058_Classes\pl_auto_file\shell\open\command "D:\Perl\bin\perl.exe" "%1" %*

提交回复
热议问题