directorio de script por lotes
FOR %%i in ("%~dp0.") do SET "parent_folder=%%~fi"
Worrisome Wolverine
FOR %%i in ("%~dp0.") do SET "parent_folder=%%~fi"