Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

How to Run a Batch file from Perl Script

by koti688 (Sexton)
on May 18, 2009 at 09:49 UTC ( #764614=perlquestion: print w/replies, xml ) Need Help??
koti688 has asked for the wisdom of the Perl Monks concerning the following question:

I have a Batch file named make.bat , and i need to run this file from a perl script which produces a Folder named "Output".
  • Comment on How to Run a Batch file from Perl Script

Replies are listed 'Best First'.
Re: How to Run a Batch file from Perl Script
by Anonymous Monk on May 18, 2009 at 09:53 UTC
Re: How to Run a Batch file from Perl Script
by Anneq (Vicar) on May 18, 2009 at 14:53 UTC

    How about:

    my $result = qx/some.bat/;

    HTH,

    Anne

Re: How to Run a Batch file from Perl Script
by Anonymous Monk on May 18, 2009 at 09:55 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://764614]
Approved by targetsmart
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2018-07-19 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (398 votes). Check out past polls.

    Notices?