I know this question has been asked before, but all the resolutions I found did not work for me. Here is what I am trying to do.
I need to be able to run a perl script via command prompt by typing:
helloworld param1 param2
if I try to do this now, my parameters are not captured in @ARGV. However, if I type:
perl helloworld.pl param1 param2
The parameters are captured in @ARGV.
I have done the following from other posts on this topic:
assoc .pl=Perl
ftype Perl="C:\Perl\Bin\perl.exe" "%1" %*
I have also clicked start->deafault programs->Associate a file type or protocol with a program. Searched for .pl and browsed to C:\Perl\bin\perl.exe.
I have also used regedit to change the open value in HKCR\Perl\shell\open\command to read:
(Default) REG_SZ "C:\Perl\Bin\perl.exe" %1 %*
after doing all of this, I am still not able to execute the script by typing:
helloworld param1 param2
Any other comments or suggestions on things I may have missed to get this to work would be greatly appreciated...