Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Running Perl Scripts From Another Windows/DOS Directory

by cciulla (Friar)
on May 18, 2003 at 04:04 UTC ( [id://258948]=note: print w/replies, xml ) Need Help??


in reply to Running Perl Scripts From Another Windows/DOS Directory

At minimum, your "PATH" environment variable should include "c:\perl\bin". Although you did mention that perl.exe is in your path -- please double check.

If you want to run your "test.pl" script anywhere on your system, ensure that the script's directory also resides within your "PATH" environment variable.

Assuming you're running some variant of NT (e.g, Win2k or WinXP), you can also add ".pl" onto your "PATHEXT" environment variable saving you some precious keystrokes and be able to run your script just like a ".bat", ".cmd", or whatnot.

Unfortunately, this doesn't work with Win9x -- I don't know about WinME, but I would hazzard to guess that it suffers from the same limitation1 -- so your milage may vary.

1 Some may argue that running any operating system from MicroSoft is inherently limited.
  • Comment on Re: Running Perl Scripts From Another Windows/DOS Directory

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-18 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found