1

system could not find the environment option that was entered

the "System could not find environment option/variable entered" is still coming up when I try to run .exes.

enter image description here

enter image description here

enter image description here

enter image description here

1 Answers1

0

The missing environment variable might be windir whose value is C:\Windows.

Other important variables are:

COMSPEC=C:\Windows\system32\cmd.exe
HOMEDRIVE=C:
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
ProgramData=C:\ProgramData

If you have difficulty adding these variables in normal boot, try booting in Safe mode.

harrymc
  • 480,290