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-12 19:35
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Is there a DOS command that can tell whether a file contains a certain string? View 718 Replies 4
Original Poster Posted 2003-07-15 00:00 ·  中国 山东 潍坊 联通
初级用户
Detective
Credits 218
Posts 30
Joined 2003-07-14 00:00
23-year member
UID 6881
Gender Male
Status Offline
Is there a DOS command that can tell whether a file contains a certain string, and store the result in ERRORLEVEL?
That's the question ^_&o
站不稳,真的站不稳,DOS真的很难站稳,谁给我找个立脚的地方?
Floor 2 Posted 2003-07-15 00:00 ·  中国 山东 潍坊 联通
初级用户
Detective
Credits 218
Posts 30
Joined 2003-07-14 00:00
23-year member
UID 6881
Gender Male
Status Offline
Something that can tell whether a string contains another string would also be fine~
站不稳,真的站不稳,DOS真的很难站稳,谁给我找个立脚的地方?
Floor 3 Posted 2003-07-15 00:00 ·  中国 山东 潍坊 联通
初级用户
Detective
Credits 218
Posts 30
Joined 2003-07-14 00:00
23-year member
UID 6881
Gender Male
Status Offline
Explain what find is for, and how to use it.
站不稳,真的站不稳,DOS真的很难站稳,谁给我找个立脚的地方?
Floor 4 Posted 2003-07-15 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Try XFIND... for example: XFIND “字符串“ 文件名
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-07-16 00:00 ·  中国 广西 玉林 电信
初级用户
你说呢
Credits 281
Posts 35
Joined 2003-06-23 00:00
23-year member
UID 5734
Gender Male
Status Offline
findstr seems like it can do it, go look for a tutorial,,,,
dv人-----------------------------呀
Forum Jump: