Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 meditating upon the Monastery: (4)
As of 2014-07-26 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls