By default, when compiling resources, RC names the compiled resource (.RES) file with the same name as the .RC file (but not the same extension) and places it in the same directory as the .RC file. The following example compiles
MYAPP.RC and creates a compiled resource file named MYAPP.RES in the same directory as MYAPP.RC:
rc -r myapp.rc
The /fo option lets you give the resulting .RES file a name that differs from the name of the corresponding .RC file. For example, to name the resulting .RES file NEWFILE.RES, you would type the following command:
rc -r -fo newfile.res myapp.rc
The /fo option can also place the .RES file in a different directory. For example, the following command places the compiled resource file MYAPP.RES in the directory C:\SOURCE\RESOURCE:
rc -r -fo c:\source\resource\myapp.res myapp.rc