- 帖子
- 1013
- 积分
- 1228
- 技术
- 14
- 捐助
- 0
- 注册时间
- 2019-2-20
|
21楼
发表于 2022-1-3 18:45
| 只看该作者
回复 20# idwma
真是不错, 结果是对的, 但是在执行过程中, 有些错误的提示
--------------------------------------------------------------------------
C:\Users\Administrator\Desktop\A>cmd /c "@echo off&for /f "delims=" %i in ('dir /b /ad') do ("C:\Program Files\7-Zip\7z.
exe" a "%i.7z" ".\%i\*" -p123 -v1023m& for /f "tokens=3" %j in ('dir /-c "%i.7z.001"') do (if %j lss 200 (del "%i.7z.001
") else if %j lss 1073741824 (ren "%i.7z.001" "%i.7z")))"
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
1 folder, 3 files, 20150760 bytes (20 MiB)
Creating archive: 1 中.7z
Add new data to archive: 1 folder, 3 files, 20150760 bytes (20 MiB)
Files read from disk: 3
Archive size: 20071613 bytes (20 MiB)
Everything is Ok
系统找不到指定的文件。
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
0 files, 0 bytes
Creating archive: 101 日.7z
Add new data to archive: 0 files, 0 bytes
Files read from disk: 0
Archive size: 32 bytes (1 KiB)
Everything is Ok
找不到 C:\Users\Administrator\Desktop\A\101 日.7z.001
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
0 files, 0 bytes
Creating archive: 102 本.7z
Add new data to archive: 0 files, 0 bytes
Files read from disk: 0
Archive size: 32 bytes (1 KiB)
Everything is Ok
找不到 C:\Users\Administrator\Desktop\A\102 本.7z.001
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
1 folder, 3 files, 17433560 bytes (17 MiB)
Creating archive: 11 美.7z
Add new data to archive: 1 folder, 3 files, 17433560 bytes (17 MiB)
Files read from disk: 3
Archive size: 17247534 bytes (17 MiB)
Everything is Ok
系统找不到指定的文件。
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
1 folder, 3 files, 17028438 bytes (17 MiB)
Creating archive: 12 国.7z
Add new data to archive: 1 folder, 3 files, 17028438 bytes (17 MiB)
Files read from disk: 3
Archive size: 16872190 bytes (17 MiB)
Everything is Ok
系统找不到指定的文件。
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
1 folder, 3 files, 26099604 bytes (25 MiB)
Creating archive: 2 国.7z
Add new data to archive: 1 folder, 3 files, 26099604 bytes (25 MiB)
Files read from disk: 3
Archive size: 24190034 bytes (24 MiB)
Everything is Ok
系统找不到指定的文件。
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
0 files, 0 bytes
Creating archive: 202 人.7z
Add new data to archive: 0 files, 0 bytes
Files read from disk: 0
Archive size: 32 bytes (1 KiB)
Everything is Ok
找不到 C:\Users\Administrator\Desktop\A\202 人.7z.001
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
0 files, 0 bytes
Creating archive: 22 人.7z
Add new data to archive: 0 files, 0 bytes
Files read from disk: 0
Archive size: 32 bytes (1 KiB)
Everything is Ok
找不到 C:\Users\Administrator\Desktop\A\22 人.7z.001
C:\Users\Administrator\Desktop\A>pause
请按任意键继续. . . |
|