What is the location of the setx command in Windows 7?

I accidentally deleted the Path variable in Windows. But I have a copy saved in a text file. I cannot change the Path variable from Start-> Computer-> Properties-> Advanced System Settings-> Environment Variables, etc., because Windows cannot find systempropertiesadvanced.exe (because the path is empty). So I want to set the path using the setx command from cmd.exe. But I get an error that setx is not a recognized command (probably because the path is empty). So, where is usually the setx command located on Windows 7? Also, if I am missing something here in my reasoning, please let me know.

+4
source share
1 answer

It is located in C:\Windows\System32 (on 64-bit Win7), which is the same location as SystemPropertiesAdvanced.exe.

+5
source