D D Bc D Be D D D B D D C D D B D Bb D C D Bc Kingsman Hd
Syntax FOR D [ r] parameter IN folder_set DO command Key folder_set A set of one or more folders. Wildcards must parameter A replaceable parameter in a batch file use G on the command line G r Recurse into subfolders see notes below . In all cases C \> dir b s a d “C \Work eports*”. To loop .Working with directories. If you wish to use directories in the variable set, use the switch d. The form of the command is for d X in directorySet do command An example that would list all the directories but not sub directories on the C drive is for d X in C \* do echo X .Something like for f “tokens=,,, delims= ” a in date t do set y= d for f “tokens=,,, delims= ” a in date t do set m= b for f “tokens=,,, delims= ” a in date t do set d= c pushd c \sourcefolder for f in d m y *.jpg do copy f c \somewherelse popd .I think this does what you are looking for for f “tokens= delims= . ” a in ” date time ” do ren dir c ab b_ d e f. The output looks like this ren dir b_. In a batch file you need extra so this line becomes for f “tokens= delims= . ” a in ” date time ” do ren .
%D%%D%BC%D%BE%D%%D%%D%B%D%%D%C %D%%D%B%D%BB%D%C%D%BC kingsman hd