有人可以帮助我理解%%〜q; %%〜r中显示的代码吗?

时间:2019-05-13 02:45:17

标签: batch-file

我有如下所示的代码:

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

0 个答案:

没有答案