jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Writing batch files! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Writing batch files!

Jaffery Rab
Ranch Hand

Joined: Jan 18, 2002
Posts: 36
Hi guys!
I have got an assignment to write one batch file that could run several java classes and pl/sql stored procedure at specific time during the day say at 2:00 PM.
I have never written any batch file before and I have no clue hw to start........anybody out there who could help me out how to get it done or any internet link........
I will apprciate if you guys help me out
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

batch files (in both windows and *nix) simply take each line of the file and send it to the command line.

So to run java programs, you'd just need to send an appropriate command to java.


java MyClass

I've never done command-line plsql, so can't help you there.

As for scheduling, once your batch file is completed, Windows has a Task Scheduler, and Unix has a crontab.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

And since this is a cross-post, I'll close it.

I agree. Here's the link: http://aspose.com/file-tools
subject: Writing batch files!
It's not a secret anymore!