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

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

by hsmyers (Canon)
on Jun 06, 2002 at 20:21 UTC ( [id://172347]=note: print w/replies, xml ) Need Help??


in reply to How do you run a perl script without typing the extension on NT?

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-28 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found