I'm not sure this answers your question... However -

#!perl
open IT, ">mybat.bat";
print IT "\@echo off\n";
print IT "echo Hello World!\n";
close IT;
system ( "mybat.bat" );

----- Original Message ----- 
From: "Jason-Yahoo" <[EMAIL PROTECTED]>
To: "A. Rivera" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 4:37 PM
Subject: Re: How to run DOS batch files or DOS commands in the Perl script


> Thank you very much.  I tested successfully.  One more
> question that how can I transfer the variables of in
> Perl Script to DOS batch or vice versa (e.g.
> "$name1_perl=..." in Perl; "set name1_dos=..." in DOS
> Batch)
> 
> --- "A. Rivera" <[EMAIL PROTECTED]> wrote:
> > system("batchfile.bat");
> > 
> > ----- Original Message ----- 
> > From: "Jason-Yahoo" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, November 09, 2001 4:09 PM
> > Subject: How to run DOS batch files or DOS commands
> > in the Perl script
> > 
> > 
> > > I can run perl script in the DOS batch file e.g.
> > > 
> > > ....
> > > @echo Next line will run Perl Script
> > > perl perl_sample1.pl
> > > ....
> > > ....
> > > 
> > > But, how can I run DOS batch files or commands and
> > > executable file in the Perl script.  Please give
> > me example.
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Find a job, post your resume.
> > > http://careers.yahoo.com
> > > 
> > > -- 
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > -- 
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to