wxcute (冰疼)当前离线
荣誉版主
tireless 当前离线
少校
@echo off(for /f "delims=." %%a in ("%~x1") do echo %%a) || echo 无扩展名pauseCOPY
评分人数
TOP
nomyself 当前离线
四级士官
@echo offset a=%~x1set b=%a:~1%if not %~nx1==%~n1 (echo %b%) else echo 无扩展名pauseCOPY
sylovanas 当前离线
六级士官
@IF NOT DEFINED DEBUG @ECHO OFFSETLOCAL ENABLEDELAYEDEXPANSIONIF "%~X1"=="" ( ECHO 无扩展名 ) ELSE ( SET "VAR=%~X1" ECHO !VAR:~1! )COPY
pusofalse 当前离线
@echo offset "var=%~x1%%无扩展名"call echo %var:~1,4%pauseCOPY
keen 当前离线
@echo offset /p a=请将文件拖放到这里:call :1 %a%pause &exit:1set b=%~x1set c=%b:~1%if not "%b%"=="" (echo %c%) else (echo 无扩展名!)COPY
@echo offset b=%~x1set c=%b:~1%if not "%b%"=="" (echo %c% &pause) else (echo 无扩展名!&pause)COPY
tyc 当前离线
二级士官
@echo offset a=%~x1if defined a (echo %a:.=%) else echo 没有扩展名pause>nulCOPY
zhouyongjun 当前离线
上校
@echo offcd %1 2>nul||(call :file %1&pause&exit)for /r "%~1" %%a in (*.*) do call :file "%%~a"pause&exit:file(for /f "delims=." %%i in ("%~x1") do echo %%i)||echo 无扩展名goto :eofCOPY
@echo offset var=无扩展名%~x1echo %var:*.=%pauseCOPY
唯尘 当前离线
上等兵
brant8 当前离线
列兵