Board logo

标题: [文件操作] 批处理调用好压批量删除失败 [打印本页]

作者: jieyuan_1981    时间: 2019-12-7 20:15     标题: 批处理调用好压批量删除失败

我写了一个简单的调用好压批量删除压缩包里面的共有文件。
  1. @echo off
  2. cd "C:\Documents and Settings\Administrator\My Documents\HaoZip2.6-32"
  3. HaoZipC d "C:\Documents and Settings\Administrator\桌面\文件夹\*.zip"  .\*\*.txt
  4. exit
复制代码
但这个*.zip不行,若指定文件名可以,换成*就显示失败。
高手们给看看。
作者: Batcher    时间: 2019-12-8 21:40

回复 1# jieyuan_1981
  1. @echo off
  2. cd /d "C:\Documents and Settings\Administrator\My Documents\HaoZip2.6-32"
  3. for /f "delims=" %%i in ('dir /b /a-d *.zip') do (
  4.     HaoZipC d "%%i" .\*\*.txt
  5. )
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2