in reply to Re^2: Invoking Perl via batchfile: ampersand in PATH ( this.bat )in thread [OT] Invoking Perl via batchfile: ampersand in PATH [Solved]
set "drive=%~dps0" [download]
help cmd says %~fsI - expands %I to a full path name with short names only