|Ah. I gave up after a couple of sessions staring at the post. Every time I looked, it appeared to have a whole different agenda. It would make for a good exercise in semantics analysis, and possibly a good basis for high-security encryption, but for me at least, it proves insoluble as stated. But, that's me! Always and forever clueless...|
Apologies for non-answer, but (hint) maybe a better problem description with less ambiguity:
"I'm sure there exists such a command that I can put inside a ".cmd" (or ".bat") file, (let's say that its location is in C:\), that when I open it" ("it" refers to the batch, or navigatiion to the directory? Some people refer to launching executable code as "opening", ), "it" (I assume batchscript) "will re-list" (copy all files? list filenames? this one really confuses me) "that open folder (C:\) to all the folders that contain "asdf" in their name?" (understood that part, i think)
"I know that there is the option of opening an explorer window (like C:\, for example), press F3, set the result options, and to search for "asdf", then on top, to click on File -> Save Search. See, I want that ".cmd", or ".bat", file to do something very similar to that, yet don't want it to open a new explorer window with the search options on the side..."
As MIke pointed out, batch does not have control over GUI interfaces, which seems to be what you're aiming at (?). Batch cannot eliminate or otherwise satisfy a GUI dialogue box.
As far as I know, there is no directory-level version of "autorun.inf", which would activate upon "opening" a directory either in CMD or GUI. (If there is, someone please set me straight!)