I want to create a windows cmd with a empty environment, meaning no env variables. What would be the easiest way to get rid of them?
Run set to list them all, split by the = sign, set them all to empty.
for /f "usebackq delims==" %f in (`set`) do (set %f=)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With