2

I've made a new file type .pl (Explorer->Tools->Folder Options...->File Types). Now I wanted to make a new Action which will call cmd.exe and automatically run PERL script.I don't know what to write under "Applications used to perform action" ,I have to pass cmd.exe certain arguments but I don't know which. Form of arguments should ,I suppose, be:[cmd.exe] <file location> perl <file name>

Miro
  • 1,778
  • 6
  • 24
  • 42
  • possible duplicate of [How do I make my Perl scripts act like normal programs on Windows?](http://stackoverflow.com/questions/4727480/how-do-i-make-my-perl-scripts-act-like-normal-programs-on-windows) – daxim Feb 18 '11 at 17:29

2 Answers2

6

To permanently associate *.pl with perl.exe, at a command prompt type the following.

assoc .pl=PerlScript
ftype PerlScript=c:\perl\bin\perl.exe %1 %*

Note that you could also associate *.pl with wperl.exe, which will run the script without a visible command window. wperl.exe is part of the ActiveState perl distribution.

Ed Guiness
  • 34,602
  • 16
  • 110
  • 145
0

Application used to perform actions:

"c:\perl\bin\perl.exe" "%1" %*

assuming "c:\perl\bin\perl.exe" is the correct file spec of your Perl executable.

Ekkehard.Horner
  • 38,498
  • 2
  • 45
  • 96