Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Answer: How do you run a perl script without typing the extension on NT?

( #172347=categorized answer: print w/ replies, xml ) Need Help??

Q&A > programs and processes > How do you run a perl script without typing the extension on NT? contributed by hsmyers

Basically this is a three step process:

  1. ASSOC .pl=PerlScript
  2. FTYPE PerlScript=perl.exe "%1" %*1
  3. set2 PATHEXT=.pl;%PATHEXT%

1. The double quotes around the '%1' allow there to be spaces in the path to your script. SEE http://aspn.activestate.com/ASPN/Mail/Message/activeperl/1229724

2. The permanent solution would be to right-click on 'My Computer' and select the 'Environment' tab. A change to 'PATHEXT' there will stick!

Edit by tye

Comment on Answer: How do you run a perl script without typing the extension on NT?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-30 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls