C1=echo &B1&&A1&.txt drop-down Create a new notepad file, copy the contents in column C, and change the suffix ". txt" of notepad to ". bat" to a batch file.Place the batch file in the same directory as the TXT file to be generated, and double-click to execute.
Note: The command will add B1 content to the A1.txt file. If there is no such file, one will be created.
According to Parno's reminder, the startup is achieved. I myself have modified the satisfactory answer according to the help provided by binnycar: @echo off :loop echo %time% set findstr %%~nxi') do ( echo. echo -------------------------------- Echo file name:%%~nxi Echo Creation time:%% j%% k Echo exception information: type %%l echo. ))) Echo The information is being updated. Please wait. Don't close this window. Thank you! ping /n %pnum% 127.1 nul ping 127.1 -n 3 1nul %0 echo %time% goto loop There are many superfluous things in the above batch processing. My layman needs to change slowly. The information about refreshing the file every two seconds has been added, and the content of the txt file can be displayed. The batch processing continues to run so that it can be displayed on the desktop, but it still does not meet the requirement of only displaying the latest 10 file information. I will study it again.