Home » today » Technology » 3-3 Generate a chapter directory list from a six-character file name and delete the annoying file extension

3-3 Generate a chapter directory list from a six-character file name and delete the annoying file extension

3-3 Generate a chapter directory list from a six-character file name, and delete the annoying file extension -01

Everyone’s writing habits are different. My habit is to archive each chapter separately. In addition to making it easier to view, the files will not affect each other. In addition, when publishing an article, the chapter table of contents can be quickly generated, making it convenient and quick to work.

It is very easy to do this. Just open Notepad, enter six characters (only two Chinese characters), customize the file name, and finally change the file extension before archiving. .txt Change to .bat File, click Save.

3-3 Generate a chapter directory list from a six-character file name, and delete the annoying file extension -02

All you have to do is drop it into the folder where you want the table of contents to be generated and click twice.You’ll find out laterlistThe file is automatically generated. Double-click to view the notepad and you will find that the file name has become a list.

3-3 Generate a chapter directory list from a six-character file name, and delete the annoying file extension -03

3-3 Generate a chapter directory list from a six-character file name, and delete the annoying file extension -04

In addition, how to delete the file extension?if onlySelectAfter that, press Ctrl + Hthen directly pressreplace allyou will find that all file extensions have been deleted.

3-3 Generate a chapter directory list from a six-character file name, and delete the annoying file extension -05

There are four variations in the usage of this dos command:

on: Output all data, sorted by file name; os: Output all data, sorted by file size; od: Output all data, sorted by date; oe: Output all data, sorted by file extension.

Of course you can also prefix b,like:dir /b /os >but I personally feel that this can easily cause confusion.

3-3 Generate a chapter directory list from a six-character file name, and delete the annoying file extension -06

and two directory directive modifications.

Change dir to any file location, such as: D:2_blog2_writing2023116; include all files in subdirectories, such as:dir / b / s >

It’s just not recommended to do this, because when you need to list files, it usually means that there is a large amount of data. Anyway, the files are small, so putting one everywhere is convenient for use, so you don’t want to organize it, but it makes you more tired. confusion.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.