I also will do the following:

Start->Settings->Control Panel->System->Advanced tab->Environment Variables
button->System variables list, select and edit the PATHEXT variable, add
'.PL;' to the variable string, and then click Okay on everything.

Dirk Bremer - Systems Programmer II - ESS/AMS  - NISC St. Peters
636-922-9158 ext. 8652 fax 636-447-4471

[EMAIL PROTECTED]
www.nisc.cc
----- Original Message -----
From: "Moran, Neil (LDN Corp)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Active Perl"
<[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 06:05
Subject: RE: Dumbass question


> You can use the ASSOC and FTYPE commands at the command line to associate
> the .pl extension with perl.exe, and any additional parameters you may
> require, for example:
>
>     ASSOC .pl=PerlScript
>     FTYPE PerlScript=perl.exe %1 %*
>
> would allow you to invoke a Perl script as follows:
>
>     script.pl 1 2 3
>
> If you want to eliminate the need to type the extensions, then do the
> following:
>
>     set PATHEXT=.pl;%PATHEXT%
>
> and the script could be invoked as follows:
>
>     script 1 2 3
>
> That should do it! The above, by the way, is ruthlessly cut'n'pasted from
> the output of the HELP FTYPE command. ;-)
>
> Neil Moran
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 22 May 2002 11:54
> To: Active Perl
> Subject: Dumbass question
>
>
> How do you make it so that you don't have to type the '.pl' extension when
> running perl scripts on Win2k?
>
> Yes, yes, I realise I should know this...
>
> Evan Morris
> [EMAIL PROTECTED]
> Tel: +27 11 792 2777
> Fax: +27 11 792 2711


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to