中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 03:54
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » How to read strings from a text file?
Printable Version  680 / 2
Floor1 jiu_qiang Posted 2003-10-20 00:00
初级用户 Posts 3 Credits 113
Hello everyone,
I have a text file: filelist.txt, with the following contents:
2 (indicates the number of filenames)
c:\filename1
c:\filename2
I want to call the 7z compression program to compress filename1 and filename2, but I don't want to process them one by one like 7z a c:\filename1 filename. How can I get the contents of filelist.txt and then use a loop to do it?
Floor2 jiu_qiang Posted 2003-10-20 00:00
初级用户 Posts 3 Credits 113
What I mean is, make a batch file to compress all the files listed in filelist.txt.
Floor3 Wengier Posted 2003-10-21 00:00
系统支持 Posts 10,521 Credits 27,736
Use the LMOD command to do it.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023