Hello, can you write me a batch file script for Windows that will search all…
- User
Hello, can you write me a batch file script for Windows that will search all subdirectories (and their subdirectories) for files including "NCOP" or "NCED" in the filename, and move those specific files to a new subdirectory within the same directory the files were located, the new subdirectory being called "Extra". I just want to place the batch file in the parent directory and double click to run it, I don't want to edit the batch file. I don't want any files to be overwritten, and most importantly, if the files are already inside an "Extra" folder, I don't want them to be moved at all to avoid creating duplicate Extra folders. Also, if the files including "NCOP" or "NCED" in the filename are the only files in their directory, that directory should instead be renamed to "Extra" instead of a new directory being made. Thanks!
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.