Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2018-10-19 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (110 votes). Check out past polls.

    Notices?