Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by Anonymous Monk
on Sep 22, 2010 at 02:48 UTC ( [id://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

Replies are listed 'Best First'.
Re^3: Win32::Start Perl/Tk Script Without Annoying DOS Window
by bcarroll (Pilgrim) 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

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found