📌  相关文章
📜  批处理目录 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:24.558000             🧑  作者: Mango

代码示例1
echo [current working directory]     :     %%cd%%       :      %cd%     
echo [batch folder path]             :     %%~dp0      :      %~dp0     
echo [batch files fullpath]          :     %%~dpnx0    :      %~dpnx0
echo [batch files fullpath]          :     %%~f0       :      %~f0

REM # | OUTPUT EXAMPLE
REM # | [current working directory] : %cd%     :  G:\DynamicWorkingDirectory
REM # | [batch folder path]         : %~dp0    :  G:\Deletable\
REM # | [batch files fullpath]      : %~dpnx0  :  G:\Deletable\01_Basic.bat
REM # | [batch files fullpath]      : %~f0     :  G:\Deletable\01_Basic.bat