Tech Tips / Windows NT / Disk and File Management
Quickly find an .exe file
The first step in writing a successful batch file is locating the utility you want to call. To do so, use the Windows NT user interface to find the program that you want to use in your batch file and select Properties from the icon's shortcut menu. When the item's Properties sheet opens, go to the Shortcut tab and look at the name of the executable file and its location.
For example, if you look at the
Backup menu item, you can see that the executable file is ntbackup.exe and that it's stored at %SystemRoot%\system32. %SystemRoot% is just another way of expressing the location of the directory containing NT. Now that you know the filename and location for the utility you need to use, you can create a batch file command that calls the utility.