Controlling the Directories That RC Searches

Normally, the Resource Compiler searches for include files and resource files first in the current directory and then in the directories specified in the Directories dialog box. (The PATH environment variable has no effect on the directories that the Resource Compiler searches.)

Adding a Directory to Search

The /I option adds a directory to the list of directories that the Resource Compiler searches. The compiler then searches the directories in the following order:

1.The current directory

2.The directory or directories you specify by using the /I option, in the order in which they appear on the command line

3.The list of directories specified in the Directories dialog box (from the Options menu), in the order in which they appear

Building a program with the following option tells the Resource Compiler to search two additional directories:

/I C:\SOURCE\STUFF /I D:\RESOURCES

When compiling the script file, the Resource Compiler searches for include files and resource files first in the current directory, then in C:\SOURCE\STUFF and D:\RESOURCES, and last in the directories specified in the Directories dialog box.

Suppressing the Directories Dialog Box

You can prevent the Resource Compiler from searching the directories in the Directories dialog box. To do so, use the /X option. The compiler then searches for files only in the current directory and any directories you specify using the /I option.

The Resource Compiler searches for include files and resource files first in the current directory and then in C:\SOURCE\RESFILES when the /X and /I options are used as follows:

/X /I C:\SOURCE\RESFILES