Is there any way to retrieve the environment variable in 64 bit machine. I already have %abc% which returns me variable in 32 bit machine, but doesn't work in 64 bit.
My Mistake: How can I get through command line not through programming language?
Is there any way to retrieve the environment variable in 64 bit machine. I already have %abc% which returns me variable in 32 bit machine, but doesn't work in 64 bit.
My Mistake: How can I get through command line not through programming language?
In PowerShell you'll get environment variables with
$Env:abc
This is independent of bit-ness.
In cmd
you can get environment variables with
%abc%
this is also independent of bit-ness, so it would be nice if you'd elaborate what exactly you tried and where it failed and in what way.