- %%a , . , - :
setlocal DisableDelayedExpansion
for /F "usebackq delims=" %%a in (%File%) do (
set "Item=%%a"
setlocal EnableDelayedExpansion
echo(!Item:,-1!
endlocal
)
setlocal/endlocal , endlocal . , endlocal , setlocal .
- ( 3 ):
, %File% / , - usebackq.
, :
set "File=D:\Data\file.ext" & rem // (particularly note the position of the opening quote)
, , .