Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by akrrs7 (Acolyte)
on Oct 13, 2011 at 16:10 UTC ( #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
Re^3: Issue with env variables set through dos batch
by Marshall (Prior) 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
Node Status?
node history
Node Type: note [id://931298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-11-23 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (134 votes), past polls