zhuan1688 当前离线
列兵
TOP
went 当前在线
少校
@echo off & cd /d "%~dp0" set "file=1.txt" ( for /f "usebackq delims=" %%i in ("%file%") do ( if not defined %%~pi ( echo %%i set "%%~pi=1" ) ) )>"%file%_NEW" move /y "%file%_NEW" "%file%" pause&exit复制代码
评分人数
@echo off & cd /d "%~dp0" set "file=1.txt" ( for /f "usebackq tokens=1-4 delims=./" %%i in ("%file%") do ( if not defined _%%k ( echo %%i//%%j.%%k.%%l/ set "_%%k=1" ) ) )>"%file%_NEW" move /y "%file%_NEW" "%file%" pause&exit复制代码