Kevin,
Wednesday, October 15, 2003 you wrote:
KB> Did you try to use perl.exe in your bat file
KB> perl.exe yourperlscript.pl %1
Yes, on my system the following works:
------------------
1) c:\wsh\mytest.bat contains:
===========================
c:\perl\bin\perl.exe c:\wsh\mytest.pl %1
2) c:\wsh\mytest.pl contains:
===========================
#!C:/perl/bin
my ($fp) = @ARGV;
open(OUT,">c:/wsh/mytest.log");
print OUT "hello world: [$fp]\n";
close(OUT);
unlink $fp if -e $fp;
exit;
3) define program alias as c:\wsh\mytest.bat
4) send message to program alias:
a) mytest.log contains:
"hello world: [c:\IMail\spool\tmp1B60.tmp]"
b) tmp1b60.tmp is deleted from spool
I never found a direct way to execute perl from a program alias. I'm
not saying there isn't any way, only that I never found one. I tried
a lot of combinations. You can make a wrapper .exe program and call a
perl program from it but I couldn't honestly see where that was better
than just using the .bat file.
Terry Fritts
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/