====== Pfad der Batch-Datai ====== %~dp0 Backslash vom Pfad entfernen SET "p=%~dp0" SET "p=%mypath:~0,-1%"
%~dp0
SET "p=%~dp0" SET "p=%mypath:~0,-1%"