Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Issue with env variables set through dos batch

by akrrs7 (Acolyte)
on Oct 13, 2011 at 16:10 UTC ( [id://931298]=note: print w/replies, xml ) Need Help??


in reply to Re: Issue with env variables set through dos batch
in thread Issue with env variables set through dos batch

Very true...that is exactly the behavior I'm observing in the windows cmd window. How do I get the env. variables to stay put ? Running the perl script from a batch script is not right now an option for me.
  • Comment on Re^2: Issue with env variables set through dos batch

Replies are listed 'Best First'.
Re^3: Issue with env variables set through dos batch
by Marshall (Canon) on Oct 15, 2011 at 15:55 UTC
    In general if you set ENV variables in a shell and then launch a program from that shell's environment, the program will inherit the environment variables.

    I you want some ENV variables to apply to any command line window, Go to Control Panel|System|Environment Variables, change them and then set them "to apply to all future command line windows". This is for example, how you would set "PATH" to be persistent.

    If this is a "one off" thing, then I would pass special settings as part of @ARG.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found