As I just posted in an alternate thread, I'm trying to "flatten" the file structure of a folder [that is: I have a base directory containing some files, plus a few subdirectories, each with a few files, and I'd like to bring all of the files from the subdirectories into the base directory. "move /sx *.* ." doesn't work because it fails on the files in the base directory, and it cannot be combined with /S+1. I now tried: "except (*.*) move /sx *.* .", but that didn't work either, because EXCEPT hid the directories, too].
However, taking my cue from EXCEPT, with its method of hiding files to exclude them, I've now settled on the following batch sequence:
attrib *.* +h
move /sx *.* .
attrib *.* -h
You've stated, though, that it is "unlikely that you actually want to (or should) use EXCEPT", and presumably your statement would apply to the batch file I've proposed as well. So, what would you propose instead? And, what is the downside of using the hidden attribute in this manner (other than the minor negative side effect of unhiding previously hidden files in the base directory?)
In general, although the docs recommend using "File exclusion ranges" rather than "EXCEPT", it seems to me that EXCEPT can provide a good deal of flexibility that File Exclusion Ranges do not. Specifically, EXCEPT allows specification of a list of specific directories to exclude, while File Exclusion Ranges do not. So, for cases in which specific directories should be excluded, do you still recommend using EXCEPT?