China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 07:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Can batch processing read data from a specified line of a text file? View 1,760 Replies 6
Original Poster Posted 2006-10-29 14:19 ·  中国 广东 深圳 龙岗区 电信
初级用户
★★
Credits 149
Posts 57
Joined 2006-10-26 11:39
19-year member
UID 68362
Gender Male
From 湖南
Status Offline
I believe DOS can do things that Windows can't do well and things that Windows can't do.
Dear all experts, how to achieve this with DOS batch processing?
I envisage creating two files, a batch file and a text file. The text file is used as a "database", and the batch file is used to read data from it. I input certain characters at the prompt of the batch file, and the batch file reads the corresponding data of the corresponding line.
If it is cumbersome to list them one by one, please experts mention the core commands and parameters to achieve it.


Thank you all!
NSMHXJJ

[ Last edited by namejm on 2006-10-31 at 01:31 AM ]
Floor 2 Posted 2006-10-29 14:33 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Just use "for+more+set" to get it done....
Floor 3 Posted 2006-10-29 20:54 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Conceptions and principles similar to text-based databases, as well as algorithms to improve retrieval speed, can refer to the articles in the following link~:)

This is to simulate text-based databases and implement batch processing word retrieval under DOS using different algorithms such as fast row positioning...

[Collective Participation][Challenge Ideas][Batch Processing: Easily Translate Words]
http://www.cn-dos.net/forum/viewthread.php?tid=23683&page=1&fpage=2
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 4 Posted 2006-10-29 20:56 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
And the above principle can also be used to make simple "electronic address books", "phone address books" and other various fun small codes~:)

On the basis of the processing of the above text data,
In the future, it can realize "human-machine automatic chat" and "artificial intelligence language automatic response" and other more intelligent things~:)

If I don't remember wrong (I must have remembered wrong),
Either Google or Microsoft acquired a company that specializes in developing intelligent automatic language communication systems,
That is, to answer customers' English questions online in real time (such as advertising consultations, business consultations, etc.),
It is a bit similar to a "online customer service" system that does not involve workers,
But this thing is still in the research stage.

A long time ago, Tencent's QQ released a real-time robot chat system on Tencent Messenger (developed by a third party),
A long time ago on BBS (WEB interface), there were similar simpler intelligent automatic chat robots,...

[ Last edited by redtek on 2006-10-29 at 09:01 PM ]
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 5 Posted 2006-10-30 03:08 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Originally posted by redtek at 2006-10-29 20:56:
And the above principle can also be used to make simple "electronic address books" "phone address books" and other fun small codes~: )

On the basis of the processing of the above text data,
In the future, it can be realized...

Good idea
Floor 6 Posted 2006-10-30 03:41 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Hehe....Brother redtek's idea is very creative....

  Once you master batch processing well, it really becomes "Nothing is impossible"....
Floor 7 Posted 2006-10-30 13:54 ·  中国 广东 深圳 龙岗区 电信
初级用户
★★
Credits 149
Posts 57
Joined 2006-10-26 11:39
19-year member
UID 68362
Gender Male
From 湖南
Status Offline
Thanks to everyone's posts!
Forum Jump: