Home > Archive > PERL Beginners > January 2006 > run script in windows automatically with params.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
run script in windows automatically with params.
|
|
| ZoharLe 2006-01-10, 4:02 am |
| Hi,
I'm using ActiveState interpreter for windows. How can I run a script
automatically(without perl before it) with paramters?
I've associated the .pl extention with perl.exe interpeter, but it
doesn't take parameters.
Thanks.
| |
| Paul Lalli 2006-01-10, 4:02 am |
| ZoharLe wrote:
> I'm using ActiveState interpreter for windows. How can I run a script
> automatically(without perl before it) with paramters?
>
> I've associated the .pl extention with perl.exe interpeter, but it
> doesn't take parameters.
You have to tell windows to use the entire command line as arguments to
the interpreter which runs the scripts.
Open up any folder, and click on Tools -> Folder Options -> File Types.
Find the PL extension, and highlight it. Click on Advanced. Find the
action that runs the script (probably "Run" or "Open") and click Edit.
Under "Application used to perform action;", type:
C:\Perl\bin\perl.exe "%1" %*
Click Ok out of all the boxes, and you should be good to go.
Paul Lalli
| |
| ZoharLe 2006-01-10, 4:02 am |
| awesome
|
|
|
|
|