.exepath (Set Executable Path)
The .exepath command sets or displays the executable file search path.
.exepath[+] [Directory [; ...]]
Parameters
+
Specifies that the debugger should append the new directories to the previous executable file search path (instead of replacing the path).
Directory
Specifies one or more directories to put in the search path. If you do not specify Directory, the current path is displayed. You can separate multiple directories with semicolons.
Environment
Item | Description |
---|---|
Modes | User mode, kernel mode |
Targets | Live, crash dump |
Platforms | All |
Remarks
In most situations, the debugger knows the location of the executable files, so you do not have to set the path for this file.
However, there are situations when this path is required. For example, kernel-mode small memory dump files do not contain all of the executable files that exist in memory at the time of a stop error (that is, a crash). Similarly, user-mode minidump files do not contain the application binaries. If you set the path of the executable files, the debugger can find these binary files. For more information, see Setting Symbol and Executable Image Paths in WinDbg.
The executable file search path can also be set using the _NT_EXECUTABLE_IMAGE_PATH
environment variable. For more information, see General Environment Variables.