Subject: | installed .bat file cannot work without a PATH |
Date: | Thu, 23 Oct 2008 14:08:54 +0200 |
To: | bug-Portable [...] rt.cpan.org |
From: | "Gabor Szabo" <szabgab [...] gmail.com> |
I managed to install Padre 0.10 on "Strawberry Perl Portable Beta 1"
when I had PATH pointing to the perll\bin and c\bin directories
it then worked if I typed in "padre".
then I moved the whole portable directory to another place ,
now typing "padre" (obviously) does not find it but the problem is
that typing c:\p\perl\padre.bat does not work either as it cannot find "perl"
if I type c:\...\perl.exe c:\...\padre it works so
Editing padre.bat and adding the magic %~dp0 taken from cpan.bat
infront of both calls to "perl"
solved the problem. Now I can type c:\...\padre.bat or double click
the padre.bat and it works.
Gabor