in reply to perl scripts executor on Win32
Or you could use a simple batch file (this is just an example, very noddy, no error checking etc.etc.)
If you saved this batch file as test.bat it would try to run test.pl in current, perl and modules directories, as per the C code above.@echo off echo %0 if exist %0.pl perl %0.pl else goto :modules goto :EOF :modules if exist modules\%0.pl perl modules\%0.pl else goto :perl goto :EOF :perl if exist perl\%0.pl perl perl\%0.pl else goto :perl goto :EOF
Cheerio!
Osfameron
http://osfameron.perlmonk.org/chickenman/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: perl scripts executor on Win32
by Courage (Parson) on May 29, 2002 at 10:47 UTC |