Batch -Skriptverzeichnis
FOR %%i in ("%~dp0.") do SET "parent_folder=%%~fi"
Worrisome Wolverine
FOR %%i in ("%~dp0.") do SET "parent_folder=%%~fi"