Help - Search - Member List - Calendar
Full Version: Running exe files in Perl
WorkTheWeb Forums > Webmaster Resources > Perl Beginner Help
Support our Sponsors!
Julius Eric Abe
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.
*******************************************************


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.