How to manipulate environment variables in parent process?
- From: siegfried@xxxxxxxxxxx (Siegfried)
- Date: Sun, 12 Nov 2006 15:19:41 -0700
Is it possible to write a perl script to manipulate the environment
variables in a windows CMD.EXE shell?
Normally, you can manipulate environment variables, but they only have
effect for sub processes. I need to change the values of environment
variables for the parent process.
I have a windows bat file and everyday I have to edit it to contain the
current date (because I have a batch job that creates a new directory with
the current date in the directory name).
Can perl help?
I think the best I could hope for would be to write a perl script that
generated a bat file and then I manually execute the bat file. I don't think
there is anyway to automate the execution of the bat file. Please tell me
The bat file just contains a lot of windows cmd.exe set commands.
- Prev by Date: Re: Print Hash Keys and Values
- Next by Date: Re: count line,words,characters & punctuations in perl script
- Previous by thread: Beginner in Perl Please Help Me
- Next by thread: Re: How to manipulate environment variables in parent process?