My goal is to exclude only single "start.exe" from root folder (I have multiple start.exe files in child folders)
I'm using "File /r /x start.exe MyProgramPath\*.*" in script.
But exclusion is working as wildcard - all my start.exe files are excluded 🙁
How can I exclude only a single start.exe from root folder and not from child folders?
Excluding single file
7 posts
Rename it?
I wish I could rename it but I can't. Source folder is a read only share on another machine.
And in case of coping all files and renaming only start.exe - total program files size is about 100Mb. So I would not use coping if there is a better way.
And in case of coping all files and renaming only start.exe - total program files size is about 100Mb. So I would not use coping if there is a better way.
How about a 2 passes File /r workaround, e.g. 1st pass adding the root excluding the desired file and 2nd pass adding sub directories without the exclusion.
exactly.
this should do the trick (didn't test it):
File /x start.exe MyProgramPath\*.*
File /r MyProgramPath\*\*.*
this should do the trick (didn't test it):
File /x start.exe MyProgramPath\*.*
File /r MyProgramPath\*\*.*
Sorry, but "File /r MyProgramPath\*\*.*" is not working (no files found)
I thought about 2 passes. For this I need to know subfolder names in compile time. The thing I do not know is how to get whose names and cycle them with "File /r" in compile time. Some macros?
I thought about 2 passes. For this I need to know subfolder names in compile time. The thing I do not know is how to get whose names and cycle them with "File /r" in compile time. Some macros?
Any tip or workaround would be great.
Please help me.
Please help me.