|You can use the %WinDir% System variable to get the installation path of the executing Windows system. %WinDir% will include the %SystemDrive% letter plus the directory name for the Windows installation. |
On another note, I would strongly suggest NOT using "path" as a variable name, since it is already defined as a System variable. To see all defined System and User environment variables, open a command window, and issue the SET command with no arguments. You'll want to avoid reusing any of those variable names, unless you know and understand the consequences.
When your only tool is a hammer, every problem looks like a nail.