@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=%SourceDir%\tools\7-zip\7z.exe set ZipIt=%SourceDir%\tools\7-zip\7z.exe a -r -tzip set ISCC="%ProgramFiles(x86)%\Inno Setup 5\ISCC.exe" set WinSCP=%SourceDir%\tools\WinSCP\WinSCP.com