Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A tutorial on how to read a text file and output hyperlink code with batch processing

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report