Share via


Copying a File to the Platform Output Directory

  1. Choose Settings from the Platform menu to display the Platform Settings dialog box, and then select a feature in the FeatureView window.

  2. Choose the Custom Build tab, and then choose the applicable configuration in the Settings For window.

  3. Choose New.

  4. Choose File Copy in the Action box.

  5. Type a file name in the Source box or choose Browse to choose a file.

  6. Type a destination directory in the Destination box, choose Browse to choose a directory, or type $(_FLATRELEASEDIR), and then choose OK.

    The #COPY command behaves like the xcopy command. The following code example shows the format to use when you type the #COPY command in the Command box.

    #COPY (src,dest)
    

    The following table shows descriptions for the src and dest values to be used with the #COPY command.

    Value Description
    src You must specify the path to the file or files. Wildcard characters are supported. If you want to copy an entire directory, use the wildcards *.*. Specifying only the directory name is not supported.
    dest You must specify the path to the directory. This directory does not have to exist in order to be specified here. You cannot rename the file by specifying a file name here.

    The following code examples show incorrect and correct ways to use the #COPY command.

    Incorrect

    #COPY("D:\WINCE400\PUBLIC\COMMON\OAK\TARGET\SHX\SH3\CE\RETAIL\etcha.exe","D:\WINCE400\PUBLIC\MyProj\release\sh3_release\etcha.exe")
    

    Correct (two examples)

    #COPY("D:\WINCE400\PUBLIC\COMMON\OAK\TARGET\SHX\SH3\CE\RETAIL\etcha.exe","$(_FLATRELEASEDIR)")
    
    #COPY("D:\WINCE400\PUBLIC\MyPlat\040A\*.res","$(_FLATRELEASEDIR)\040A ")
    

See Also

Platform Settings

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.