Batch Scripting - Listing files with a specific amount of characters in file name
- by Jane
I'm creating a batch script for a class and I've hit a roadblock
I have to list all text files whose names are up to seven characters long on the whole c: drive - make the listing output in a wide formant - then append to Batch script file output.txt
So far I have --
dir c:*txt/w/o/s/p c:/"My Batch Script File Assigment"/"Output"/"Batch Script File Output Data".txt
The above does everything except limit the search to files with only 1-7 characters in their name.
If anyone could point me in the right direction I would really appreciate it!