windows – 发生错误时跳过
发布时间:2020-12-14 04:27:18 所属栏目:Windows 来源:网络整理
导读:我有批处理(cmd)中的以下代码: for /f "delims=" %%f in ('dir /b /s Example') do (commandif %errorlevel%==1 (commandSKIP)command) 编辑: 为了使事情更清楚: for / f …搜索名为“Example”的目录并循环搜索多于一个的目录. 第一个命令是删除命令,它
我有批处理(cmd)中的以下代码:
for /f "delims=" %%f in ('dir /b /s Example') do ( command if %errorlevel%==1 ( command SKIP ) command ) 编辑: 我希望现在很清楚. 提前致谢. 解决方法
像这样?
for /f "delims=" %%f in ('dir /b /s Example') do ( command if not errorlevel 1 ( command-for-success ) else ( command-for-error ) ) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
推荐文章
站长推荐
- Windows BAT或CMD:将一些数据发送到localhost u
- vscode在win10 / linux下的.vscode文件夹的配置
- windows-server-2008 – 我应该在Windows 2008 V
- .net – 更改正在运行的进程会话ID和lpDesktop?
- .net – 如何保护自己免受失控的内存消耗,降低PC
- supermicro – 4TB HGST SATA驱动器在Windows Se
- 带有Windows身份验证的Oracle连接字符串
- 是否有针对MS Windows的开源OpenGL实现?
- 是否存在Windows事件字符数限制?
- Clickonce App不以Windows 1803开头
热点阅读