Julius Eric Abe
Mar 3 2005, 04:52 PM
Hi,
Is there a way in Perl or a function that has the capabilities of calling or running executable files, let say i want the calculator in windows run and I would call it through perl, is this possible.
Thanks,
Julius
---------------------------------
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
Julius Eric Abe wrote:
QUOTE |
Hi,
Is there a way in Perl or a function that has the capabilities of calling or running executable files, let say i want the calculator in windows run and I would call it through perl, is this possible.
Here is a simple shot. I use the editor scite and this will fire it up on machine and then hang (Perl Script) there until you exit scite. |
#!perl
use strict;
use warnings;
my $MyScite = 'C:/wscite/SciTE.exe';
my $MyStatus = system($MyScite);
Now if you wanted to start the processes and continue on, then you could use wstart and something like this to start the process on your mahcine and then continue on:
my $MyStatus = system( "wstart $MyScite &" );
Wags ;)
QUOTE |
Thanks,
Julius
--------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web
|
*******************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
*******************************************************