Skip to content
⌘ NSIS Forum Archive

Ignore files from specific folders and not others

3 posts

rsegal#

Ignore files from specific folders and not others

Is there a way using the new "/x" parameter with the "/r" parameter for the File command to ignore certain files in one folder and not in another?

Can I do something like...

File /r /x "c:\My Build Folder\folder2\*.dll" "c:\My Build Folder\*.*"

To ignore all dlls in the folder2 subfolder but leave dlls in other subfolders untouched.
kichik#
You can use two File /r commands. In the first, ignore folder2. In the second, ignore *.dll and extract only folder2.