Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with creating a batch file in DOS.

Status
Not open for further replies.

mlrmlr

Technical User
Mar 17, 2006
168
US
Hello,

I have absolutely no knowledge of Pearl, but I have 5 pearl scripts that were created to populate an Excel spreadsheet.

I currently open the pearl scrips (which opens in DOS) and hit enter twice. The scrip executes and closes. I have to do this 5 times with 5 different pearl scripts.

I was wondering if someone could help me create a batch file in DOS to generate all five scripts at one time.

This is my attempt to create a batch file.

[BEGIN CODE]
Path C:\Perl\bin
cd C:\Perl\bin\pearl.exe C:\Script\DOS\Reports\
Step 0 - WO0.pl
-CR
-CR
Step 1 - WO1.pl
-CR
-CR
Step 2 - WO2.pl
-CR
-CR
Step 3 - WO3.pl
-CR
-CR
Step 4 - WO4.pl
-CR
-CR
[END CODE]

Thanks.
 
Why not just edit the scripts to not have you hit enter?? And then combine them into one script.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
 
Hi Travs69,

I don't know Pearl at all. I was sent this package to compile this report that I analyze.
 
It's PERL not PEARL

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Code:
system('perl WO' . $_ . '.pl') for (0..4);
Please do not ask for .BAT files on the perl forum, as a refusal often offends... [smile]

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top