@echo off set Drive=%~d0 set SourceDir=%~dp0 for %%a in (%SourceDir:~0,-1%) do set "SourceDir=%%a" set DropDir=%Drive%\Dropbox set StableInstDir=%SourceDir%\tools\installer_ng_stable set Arch=%Drive%\Arch set ArchPdb=%Drive%\ArchPdb set ArchDistr=%Drive%\ArchDistr set Errors=..\z_Errors.txt set NoErrors=..\z_No_Errors.txt set CompressIt="%ProgramFiles%\7-Zip\7z.exe" set ZipIt="%ProgramFiles%\7-Zip\7z.exe" a -r -tzip set ISCC="%ProgramFiles(x86)%\Inno Setup 5\ISCC.exe" set WinSCP="%ProgramFiles(x86)%\WinSCP\WinSCP.com"