Home > OS >  How to use batch processing to solve in the same folder every five files to build a subfolder.
How to use batch processing to solve in the same folder every five files to build a subfolder.

Time:09-19


As sample, in this folder every five excel table to build a new folder, best new folder name is the name of the excel, but no 01 who, in fact I have 1740, just a few examples, thank you!!!!!

CodePudding user response:

Is simple, I'm afraid the file list list, finishing in excel, generate batch to create,
File list list, can under the command line window dir/b/on> Files. The LST similar to do; In the excel is two serial number to remove the tail, select each group name,

CodePudding user response:

Specific how to do things, I put my name are extracted, then build the document book my md file name, did not respond

CodePudding user response:

Have no reaction, what performance? Finally formed the batch is a pile of md "... "Yes, in that folder is ok,

CodePudding user response:

The following code only test show in the picture file name
Read 01 number of file name, remove 01 as the new folder name, move the files in
 
FOR/F "delims=" % % I in (' dir * 01. XLS?/b/on ') do (
Call: do "% % ~ ni
")
The exit/b

: do
Set a=% ~ 1
A: set a=% ~ 0, 2%
Md "% a %
"Move "% a % *. The XLS?" "A % %
"The exit/b


CodePudding user response:

On November 6, the...
  • Related