How to modify the batch file name

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

How to modify the batch file name

1, enter the path to the folder where the file - "Use dir /b>rename.xls this folder name which asked members of all on the rename.xls file format is not supported rename.xlsx
Here Insert Picture Description
2. all concentrated in this file name a this column, and then start from B1, write the function: = SUBSTITUTE (A1, "_ DATA_TABLE", "")), from the beginning to find the bottom right corner of B1 + sign, down to B221, will appear the following results:
Here Insert Picture Description
but now need to all formulas extracted form .bat file, plus uses of B1 'manner, as follows:
Here Insert Picture Description
the question is: if the + pulldown mode, this value is not incremented A1 change as follows:
Here Insert Picture Description
so, instead ctrl + H alternative ways:
Here Insert Picture Description
as follows:
Here Insert Picture Description
then copy the B1-B221 this column to the new current directory substitute.txt document, use ctrl + H:
Here Insert Picture Description
then the file name is ren.bat, click run discovery can not be used, an infinite loop . . . .
Ever since, modified as follows:
1, in the original document, B1-221, the modification of the original formula form:
Here Insert Picture Description
2, used to C1: = "ren" & A1 & "" & B1, then locate lower right corner +, pull down to:
Here Insert Picture Description
copy the contents of the C1-221 ren.txt file and then change it to ren.bat, run.
The result was not successful, she found the reason: = "ren" & A1 & "" & B1 fewer spaces should be changed = "ren" & A1 & " " & B1. Then run successfully.

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/u014515465/article/details/93465468