• Post Reply Bookmark Topic Watch Topic
  • New Topic

Batch File  RSS feed

 
Sonal Chawla
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Can any bodv help how to write bach file.

Regards,
Sonal
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're going to have to define what a "batch file" is, the term is ambiguous.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!