Archive: Script for many files in many folders


Script for many files in many folders
Hi,

I am writing a nsis installtion script with mui. I have to include sevaral folders and files in each folder like this:

SetOutPath "$Folder1"
File "Folder1/File1"
File "Folder1/File2"
...
SetOutPath "$Folder2"
File "Folder2/File1"
File "Folder2/File2"
...

The problem is, that there are so many nested folders and files each each folder that it would take forever to do it manually. Is there a faster way to include a complete folder with all its subfolders and files?


File /r foo\*.*


nice, thank you. and so easy.

Is there also a way to exclude files? Like All files *.* except all that start with 'a' or end with 'z'? Using RegExp or similar?


maybe you should look up info about the File command in the help file