in reply to Re: How do I start perl without having a "cmd.exe" window (wperl)
in thread How do I start perl without having a "cmd.exe" window

Thank you. I love it!! wperl.exe. It's good to be here on perlmonks.org I have asked many people this question and no one had a good answer. You guys are great. I hope I can help others seeking perl wisdom as I have wrote many applications using perl.

  • Comment on Re^2: How do I start perl without having a "cmd.exe" window (wperl)

Replies are listed 'Best First'.
Re^3: How do I start perl without having a "cmd.exe" window (wperl)
by james28909 (Deacon) on Mar 23, 2015 at 15:11 UTC
    You can also add tools that you use repeatedly to right click context menu in windows. Ive done that for a ton of tools in the past.
      To do this all you got to do is open regedit. Then navigate to hkey_classes_root/*/shell. Right click on "shell" and select "new" and then select "key" and then name it. What ever you name this key is what will show up on the right click menu. So if you name it "This is a test key" then that is what will show up on the right click menu.
      Next, right click on the key you created and select "new" and then "key" again. This time name this key specifically "command". Once you have named it, you edit the value. I have a script called reverse.pl, so when I edit the value, i put in there "C:\perl\bin\perl.exe C:\users\james\dropbox\scripts\reverse.pl %1" the when I right click a file, it will have that option to run that script per each right clicked file.

      Once you do this, you should be able to right click any file, and the command will be right in right click context menu.
Re^3: How do I start perl without having a "cmd.exe" window (wperl)
by BillKSmith (Monsignor) on Mar 23, 2015 at 19:44 UTC
    Another option is to create a shortcut to your perl script. Edit the target (on the properties menu) of the shortcut to use wperl. Your script becomes the argument of wperl. It may be necessary to specify the full path of the script. I choose to move the shortcuts to my desktop.
    Bill
      For this, you can put the perl script in your system32 folder (also syswow64 folder) and call them without having to type the full path of the script. Go ahead and try it :)
      Or you can also just slap the script into your perl/bin folder as well