我有如下所示的代码:
SET "mypath=%PATH%"
SET MYPATHCOPY=%PATH%
SET swpath=W:\Local\Programs
for /f "delims=; tokens=1,2*" %%p in ("%MYPATHCOPY%") do (
SET MYPATHCOPY=%%~q;%%~r
if "%%p"=="%swpath%" goto mapping
)
:mapping
rem ... some code
下面的行实际上是做什么的?
SET MYPATHCOPY=%%~q;%%~r