批处理文件如何定位它所在的位置?

Den*_*man 2 cmd batch-file locate

批处理文件本身如何查看它所在的位置?

rpk*_*lly 11

%0是文件的名称.%~dp0将是文件的绝对位置,d为驱动器,p为路径,0为文件名.