Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Adding a command to MAPEXE

Aug
2,857
151
How do I add a command and its full path+name to the map?

Code:
C:\...\x64>ver

TCC  37.00.15 x64   Windows 10 [Version 10.0.19045.7846]

R:\>echo %@option[mapexe]
Yes

C:\...\x64>mapexe

C:\...\x64>mapexe /a "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe"
Usage : MAPEXE [/A /D /F /P[n]] [command [path]]

C:\...\x64>dir "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe"

 Volume in drive C is unlabeled    Serial number is acb2:6a48
 Directory of  C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe

2020-12-02   4:31         576,976  windbg.exe
             576,976 bytes in 1 file and 0 dirs    577,536 bytes allocated
     201,699,266,560 bytes free

R:\>mapexe /a e:\utils\line.exe
Usage : MAPEXE [/A /D /F /P[n]] [command [path]]

Note that line.exe is in my path;
Code:
R:\>echo %@search[windbg.exe]
ECHO is OFF

R:\>echo %@search[line.exe]
E:\utils\line.exe

Ref: MAPEXE

Joe
 
Thankyou for the clarification Rex.

The command will be added to the map only if it is in the path.

For commands that are not in the path,
it will not be added,
unless done so explicitly.

Code:
E:\Utils>"C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe"

E:\Utils>mapexe

E:\Utils>mapexe /a windbg.exe "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe"

E:\Utils>mapexe
   1  windbg.exe  C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe

E:\Utils>

I've updated my notes to include your example.
Ref: MAPEXE

Joe
 
Back
Top