the path command displays list of paths of executable files delimited by ; . I have tried to get help for command as follows
path --help
Later when I attempt to run commands like taskkill or ping, I got response as
'taskkil' is not recognized as an internal or external command, operable program or batch file.
Then I realized I have overwritten the path variable. now path variable value is "--help"
when I close and open another command prompt , now taskkill , ping commands are working. Also now path command displays same lists of paths that i have overwritten. How the path variable retains its values ?