Archive: File access at compile time


File access at compile time
Is it possible to have file access at compile time? How would I do this? I'm trying to make an installer that installs a selection of files from the filesystem based on information in a txt/ini file. The compiler script would be called with an ordernumber as argument. Then read a file that looks like this:

[ordernumbre1]
c:/file1
c:/file2

[ordernumbre2]
c:/file1
c:/file3

And include the matching files in the installer. So i would get an order specific installer.

can anybody help me?
thx
Koen


How about creating a header like,
!ifdef ordernumber1
file "c:\dir1\file1"
file "c:\dir1\file2"
!endif

!ifdef ordernumber2
file "c:\dir2\file1"
file "c:\dir2\file2"
!endif

and call the compiler with /D.

You may even automate the creation of the header, see below,

http://forums.winamp.com/showthread....hreadid=265319