A tutorial on how to read a text file and output hyperlink code with batch processing
This article focuses on "using batch processing to read text files and achieve the output of hyperlink code method tutorial", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn the "batch implementation to read text files and achieve the output of hyperlink code method tutorial"!
If
The content in a.txt is as follows
The code is as follows:
Detailed explanation of the _ DateDiff_ function in ASP. Htm
An example of the _ Split_ function in ASP. HTM.
It is easy to upload pictures to the database. Htm
Get the content remotely and store it on the local brain. HTM.
Method .htm to prevent data from being submitted from the outside
Use the following batch processing
The code is as follows:
Echo off > 1.txt
For / f% I in (book.txt) do call: dxy% I
Goto: eof
: dxy
Set var=%1
Set fname=%~n1
Echo ^% fame% ^ > > 1.txt
Cls
Goto: eof
The function of echo off > 1.txt is to clear the content of 1.txt to prevent it from running many times, and the content will be repeated.
The second problem is that I didn't know the function of $N1.
All .htms in a.txt content are replaced with empty ones
The code is as follows:
Detailed explanation of _ DateDiff_ function in ASP
An example of the _ Split_ function in ASP
It is easy to upload pictures to the database
Get the content remotely and store it on the local brain
Ways to prevent data from being submitted from the outside
Implementation method:
The code is as follows:
Echo off > 1.txt
For / f% I in (book.txt) do call: dxy% I
Goto: eof
: dxy
Set var=%1
Echo ^% var% ^ > > 1.txt
Cls
Goto: eof
At this point, I believe you have a deeper understanding of the "how to read text files and achieve the output of hyperlink code with batch processing". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!