写一个bat作用是获取传入文件的名称
@echo off setlocal
if "%~1"=="" ( echo No file name provided. exit /b )
set "filename=%~nx1" echo The file name is %filename%
endlocal exit /b
原文地址: http://www.cveoy.top/t/topic/icK9 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
@echo off setlocal
if "%~1"=="" ( echo No file name provided. exit /b )
set "filename=%~nx1" echo The file name is %filename%
endlocal exit /b
原文地址: http://www.cveoy.top/t/topic/icK9 著作权归作者所有。请勿转载和采集!