tolan
15th May 2007 09:43 UTC
Excluding single file
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?
Red Wine
15th May 2007 09:52 UTC
Rename it?
tolan
15th May 2007 10:19 UTC
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.
Red Wine
15th May 2007 16:56 UTC
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.
Comm@nder21
15th May 2007 18:22 UTC
exactly.
this should do the trick (didn't test it):
File /x start.exe MyProgramPath\*.*
File /r MyProgramPath\*\*.*
tolan
16th May 2007 07:32 UTC
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?
tolan
16th May 2007 20:37 UTC
Any tip or workaround would be great.
Please help me.