下面是我正在使用但没有得到结果的代码没有得到想要的结果但是错误
set "OldStra=abc eft"
set NewStra=!NewStr1!
set "outputa=
for %%a in (%NewStr1a::=;%) do set outputa=!outputa!%%a-
rem Eliminate the last dash:
set outputa=%outputa:~0,-1%
echo Outputa: "%outputa%"
pause;
for %%F in (C:\Users\rawal\Desktop\movie\"!NewStr1!"\*.*) do (
CALL ModFile %%~dpnxF OldStra NewStra
)
我收到此错误
c:\Users\rawal\Desktop\movie>(CALL ModFile %~dpnxF OldStra NewStra )
The following usage of the path operator in batch-parameter
substitution is invalid: %~dpnxF OldStra NewStra
For valid formats type CALL /? or FOR /?