- @echo off&setlocal enabledelayedexpansion
- pushd c:\test
- md 0
- md 1
- md other
- for %%a in (*.exe) do (
- call %%a
- if !errorlevel! equ 0 (
- copy %%a 0&echo %%a>>0\0.txt
- ) else (
- if !errorlevel! equ 1 (
- copy %%a 1&echo %%a>>1\1.txt
- ) else (
- copy %%a other&echo %%a>>other\other.txt
- )
- )
- )
复制代码
[ 本帖最后由 netbenton 于 2009-7-31 07:24 编辑 ] |