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?
Asked
Active
Viewed 255 times
1 Answers
3
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=)

TessellatingHeckler
- 27,511
- 4
- 48
- 87