批量选择文本文件中列出的命名文件夹
例如,这可行:
"c:\Program Files\7-Zip\7z.exe" a -tzip Test_1.zip D:\Misc\one
"c:\Program Files\7-Zip\7z.exe" a -tzip Test_2.zip D:\Misc\two
将列表放在单独的文本文件中会很好:
@ECHO OFF
SETLOCAL
SET "sourcedir=D:\MISC"
SET "filename1=%sourcedir%\list.txt"
list.txt将包含:
D:\Misc\three
D:\Misc\two