File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Batch File Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Batch File" Watch "Batch File" New topic
Author

Batch File

Sonal Chawla
Greenhorn

Joined: Apr 02, 2006
Posts: 6
Hi ,

Can any bodv help how to write bach file.

Regards,
Sonal
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Hi Sonal,
I hope you are talking about writing batch file on windows.
Batch file is about instructing OS to execute the command in the sequence you want. List of batch command can be found by typing help in command prompt. You wisely arrange commands to achieve your requirements.
[ April 28, 2006: Message edited by: Arun Boraiah ]

Sharing is learning
Ankur Sharma
Ranch Hand

Joined: Dec 27, 2005
Posts: 1234
What do you mean by Batch file..


According to my knowledge there are two types of Batch files:

1. Java Batch Programs
These are the classes which have directly a main program which will directly interact with user via command line arguments.
These types of Batch programs are usefull in environments like on AS400/OS/2 Environment etc.

2. Batch File.
This is used to execute some number of commands sequentially . Like when we are in the folder where are some java classes.

then we might right these commands in Batch file



Now save this file as "Sample.bat"

Now when you double click on these files these will seems to be running as an exe of JAVA.


Hope this will help you a lot.

But still if any concern then revert me back............
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
You're going to have to define what a "batch file" is, the term is ambiguous.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Batch File
 
Similar Threads
Creating a file by giving relative path
WA #1.....word association
java io
Struts FormFile (parsing .csv files)
performance issues with file read and write