Environment.GetEnvironmentVariable("PATH") gives you the effective PATH that the operating system uses when searching for executable files from User PATH.
Thus if some developers like me add FFMPEG path to system PATH they always face with that page which tells there is no FFMPEGinstalled or cannot be found.
I had changed codes to get the PATH from both the System and User environment variables.
Environment.GetEnvironmentVariable("PATH")
gives you the effective PATH that the operating system uses when searching for executable files fromUser PATH
. Thus if some developers like me addFFMPEG
path to system PATH they always face with that page which tells there is noFFMPEG
installed or cannot be found. I had changed codes to get thePATH
from both theSystem
andUser
environment variables.