Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

How to Run a Batch file from Perl Script

by koti688 (Sexton)
on May 18, 2009 at 09:49 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-24 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found