I want to know how to automatically find the Windows installation directory under the DOS prompt. For example, in a batch file, I need to automatically add a file to the system directory. But the system directory is not necessarily C:\WINDOWS\ or C:\WINNT\. How to do this?


