Published in: DOS Batch
|
|
|
This which.bat command works like Linux/bash 'which'
Save the Source as file which.bat and place it somewhere in the executable path.
Example usage: "which notepad.exe" results in "C:\WINDOWS\system32\notepad.exe". Note the .exe - 'which notepad' (without the .exe) results in "notepad not found in path"
Expand |
Embed | Plain Text
Comments
Subscribe to comments
You need to login to post a comment.
This only seems to work for files located in the WINDOWS map.