Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Win32::Start Perl/Tk Script Without Annoying DOS Window

by Anonymous Monk
on Sep 22, 2010 at 02:48 UTC ( #861190=note: print w/ replies, xml ) Need Help??


in reply to Re: Win32::Start Perl/Tk Script Without Annoying DOS Window
in thread Win32::Start Perl/Tk Script Without Annoying DOS Window

On Windows Vista: I want to launch myperlscript.pl from the windows desktop with a double click and have it execute without the dos console window. If I create a myperlscript.bat that does: "c:\perl\bin\wperl.exe myperlscript.pl", the batch file itself seems to cause a dos console window to start up. As far as I know I can't change the file association on "myperlscript.pl" to use wperl.exe instead of perl.exe without causing all .pl files to change to wperl. I was also unable to create a shortcut on the desktop as described in a previous message above. Any hints?


Comment on Re^2: Win32::Start Perl/Tk Script Without Annoying DOS Window
Re^3: Win32::Start Perl/Tk Script Without Annoying DOS Window
by Anonymous Monk on Sep 22, 2010 at 02:51 UTC
    create a shortcut and NOT a batch file
Re^3: Win32::Start Perl/Tk Script Without Annoying DOS Window
by bcarroll (Monk) on Jul 03, 2014 at 05:07 UTC
    The easiest method is to create a new file association that executes wperl.exe

    To change which program starts when you double-click a file, follow these steps:

      Click Start, and then click Control Panel
      Click Folder Options
      Click File Types tab in Folder Options window and the full file types and their association will be listed
      Click New and type the File Extension (.wp) in the box and then click Advanced
      Choose an association for the file type (wperl.exe)
      Click OK and then Click Close
      Open the file again

    Here is the original Microsoft KB article

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://861190]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2014-07-29 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (226 votes), past polls