
CODE: [Copy to clipboard]@echo off
rem 用于一次比较多个位于不同文件夹下的同名文件;
rem 将此批处理文件放在其中一个文件夹下,多选另
rem 一个文件夹下的文件拖动到此批处理即可。
set localpath=%~dps0
:here
IF "%~n1"=="" goto batend
fc /LB1 %localpath%%~nx1 %~s1>>fcresult.txt
shift
goto here
:batend
msg * 建议在记事本中 另存为... 保存备份!
start /wait fcresult.txt
del fcresult.txt
set localpath=
| Quote: | |
|
CODE: [Copy to clipboard]参数1:源目录@echo off
pushd %1
for %3 %%i in (*.*) do dir %4 "%2\%%~nxi" >nul 2>nul && echo %%~nxi>>list.txt
popd
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |