English 中文(简体)
批量卷宗中的粘合器
原标题:Iterate over folders in batch file

假设:一只载有其他文件夹的夹

Folder
  Sample Folder 01
  Sample Folder 02
  .....

我需要为每名SampleFolderxx指挥:

7z a -tzip "Sample Folder xx".cbz "Sample Folder xx" -mx0

我怎么能用批量文档读到Folder上的每页数,执行上述指示?

最佳回答

你们需要 lo。 将以下线划入“主人”的编号:cd

@echo off

for /F "usebackq delims=" %%F in (`dir /b /ad-h`) do (
    7z a -tzip "%%F".cbz "%%F" -mx0
)
问题回答

暂无回答




相关问题
complex batch replacement linux

I m trying to do some batch replacement for/with a fairly complex pattern So far I find the pattern as: find ( -name *.php -o -name *.html ) -exec grep -i -n hello {} + The string I want ...

How to split a string by spaces in a Windows batch file?

Suppose I have a string "AAA BBB CCC DDD EEE FFF". How can I split the string and retrieve the nth substring, in a batch file? The equivalent in C# would be "AAA BBB CCC DDD EEE FFF".Split()[n]

How to check which Operating System?

How can I check OS version in a batch file or through a vbs in an Windows 2k/2k3 environment ? You know ... Something like ... : "If winver Win2k then ... or if winver Win2k3 then ....

热门标签