Re:pl2bat issue

2002-02-13 Thread Jenda Krynicky

From:   Jorge Goncalvez <[EMAIL PROTECTED]>
> Hi, I tried to make an .bat of a .pl file thanks to pl2bat to execute it from 
> both Windows NT and Win 9x.
> But when i double clicked it on NT it works but on Win9x it fails and i have the 
> following:
> Command or filename incorrect
> In the header and the finish  of my file i have:
> 
> @rem = '--*-Perl-*--
> @echo off
> if "%OS%" == "Windows_NT" goto WinNT
> c:\\OXE\\Active_perl\\bin\\perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
> goto endofperl
> :WinNT
> c:\\OXE\\Active_perl\\bin\\perl -x -S "%0" %*

And do you have Perl installed in the same path on both 
computers? The pl2bat only adds a wrapper around the script that 
allows you to use the script as a login script or drop files on the 
icon or whatever, but you still need Perl installed!

Jenda


=== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re:pl2bat issue

2002-02-13 Thread Jorge Goncalvez


Hi, I tried to make an .bat of a .pl file thanks to pl2bat to execute it from 
both Windows NT and Win 9x.
But when i double clicked it on NT it works but on Win9x it fails and i have the 
following:
Command or filename incorrect
In the header and the finish  of my file i have:

@rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
c:\\OXE\\Active_perl\\bin\\perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
c:\\OXE\\Active_perl\\bin\\perl -x -S "%0" %*
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
goto endofperl
@rem ';

#!/usr/local/bin/perl -w


__END__
:endofperl

thanks




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]