Archive: Forceing files into a dir


Forceing files into a dir
Hi,

I'm currently using the below File command and i'm trying to force the exe to appear in the base folder.

File /r "${BuildFolder}*.exe"

Is this possable or do i have to write a run time function to search and copy the exe files from the sub directories at runtime??

Thanks,
Bob


There is no way to flatten a directory with the File command. But you don't have to run a function to move the files. You can use some program on compile time that will find the .exe and generate a header file which you can include. This program can even be a simple NSIS "installer".

!system 'findexes.exe "${BuildFolder}" "$%TEMP%\exes.nsh"'
!include "$%TEMP%\exes.nsh"