bug_x

导航

 
1、
@echo off & setlocal enableDelayedExpansion
set a=
set /p a=Please drag your txt file for split:  
cls
:: %% 两个百分号 不带文件名后缀
for %%k in (%a%) do set wjm=%%~nk

2、 
调用call echo %~nx1

set /p a=Please drag your txt file for split:

call :getname !a!
:getname
echo  %~nx1

  

posted on 2018-05-05 11:09  bug_x  阅读(565)  评论(0编辑  收藏  举报