I'm trying to build a batch file which will carry out a rename of all subdirectories in a location in the format of 'parent directory filename' followed by underscore followed by '4 digit incrementing number' (new number count for each directory). So for example ABCDEF_0001, ABCDEF_0002, etc. I currently do this using windows software but would love to have the ability to run it as a batch file.
Many thanks!
EDIT - If possible using an address in the bat file rather than drag and drop.