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.
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.
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.
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.
and two directory directive modifications.
Change dir to any file location, such as: D: 2_blog 2_writing202311 6; 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.