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?
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?


