批处理命令中如何消除文件路径中地空格,见 'dir \\invscm\For TEAM\Sources'
文件路径
\\invscm
\For Team
\Sources
\M_11
\M_12
\M_13
批处理命令
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEEXTENSIONS
:SetModified
@echo Please specify full path of the modified folder
set /p Modified=
rem We need check if the Modified folder if exist.
rem set Modified=%CD%
pushd ..
REM Get Version of Source Label.
:VERSION
rem list all available labels we can use from server
for /f "tokens=2 delims=_" %%i in ('dir \\invscm\For TEAM\Sources') do @echo %%i
……………
上面地'dir \\invscm\For TEAM\Sources'由于空格地存在,无法找到文件