Originally posted by Todd Lundstedt
I am being dragged, kicking and screaming, into the Windows world. I have a ton of maintenance and management scripts in Korn shell on my AIX Cloverleaf. I would like to rewrite/port them to Windows, and I have chosen to learn Powershell in the process.
I am stuck.
Without executing a batch job (.bat) where I first perform a setroot, how do I get my environment variables (HCIROOT, etc) to populate inside the powershell environment. No fair using $env:hciroot... remember, those don't exist yet even in the dos shell environment, as setroot hasn't been done there, yet.
I am looking for the magical "eval" command or in KSH the . (dot) command to execute and source in variables.
TIA -