Command Line Utilities >

 

which.exe

 

 

which.exe

WHICH allows you to find out WHICH file is first in the PATH, INCLUDE, or LIB Environments. The PATH environment is default.

WHICH will exactly match the filename, if the filename contains a “.extension”. If the “.extension” is not there WHICH will return the following types of files:

In the PATH environment:

exe .bat .cmd .com

In the INCLUDE environment:

.h

In the LIB environment:

.lib

In the ClassPath environment:

.class

USAGE:

which file [/D] [/L] [/I] [/C]

COMMAND OPTIONS:

/D

Give detailed file listing

/I

Search INCLUDE environment

/L

Search LIB environment

/C

Search ClassPath environment

EXAMPLES:

To find out WHICH cmd.exe is being loaded when you run cmd, type:

which cmd

To find out WHICH telmc.exe is being loaded and get file details, type:

which -d telmc

To find out WHICH stdio.h is being used in a command line build, type:

which stdio -L

To find out WHICH telnetc.ini file is being used

which telnetc.ini

 

 

 

Copyright © 2023 Pragma Systems Inc