Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running perl with arguments fix
- Win7, Win8.1
- 0: its recommended to install perl to "c:\perl\bin"
- 1: win + pause (or right click my computer -> properties)
- advanced settings
- environment variables
- Path -> Edit: paste the followings in the front without the quotation marks
- "c:\perl\bin;"
- Or whatever you installed Perl.
- PATHEXT -> Edit: paste the followings in the front without the quotation marks
- ".PL;"
- 2: apply the registry modification:
- Windows Registry Editor Version 5.00
- [HKEY_CLASSES_ROOT\Applications\perl.exe\shell\open\command]
- @="\"C:\\Perl\\bin\\perl.exe\" \"%1\" %*"
- == reboot not needed ==
- To test it write to "try.pl" the following lines until #END#
- if (@ARGV && scalar(@ARGV) > 0) {
- print "it's working!\n"
- . "parameters are: " . join(', ', @ARGV) . "\n";
- }
- else {
- print "it's not working, you screwed me over!\n";
- }
- <STDIN>;
- #END#
- Execute "try.pl nice try"
- If it's working you can also use it from the command line of your Total Commander.
- Have a nice day!
- ps:
- if it's not working or do you use WinXP enter to a command line:
- but i'm doubt that anyone using XP nowdays...
- assoc .pl=Perl
- ftype Perl="C:\Perl\bin\perl.exe" "%1" %*
Advertisement
Add Comment
Please, Sign In to add comment