[Last Call] Learn how to a build a cloud-first strategyRegister Now


writing .bat file?

Posted on 2011-10-31
Medium Priority
Last Modified: 2012-06-27

What can you use to write a .bat file?
Is it WSH or PowerShell or vscript?
Or fixed?
Question by:dkim18
LVL 47

Assisted Solution

for_yan earned 200 total points
ID: 37058799
Are you atliking about writing .bat file with Java program?
Then you werite it just like any other twext file

Accepted Solution

Rahul_Gade earned 1600 total points
ID: 37058823
.bat file stands for DOS batch files, which means it is just the set of DOS commands arranged in sequence to produce some desired output. This DOS scripting is also supported in cmd.exe mode provided by Windows XP,2K,2K7 etc.
So, e.g. if you want to copy certain files at startup and delete the older files, then you may write delete and copy or xcopy command in a text file and save it as .bat file. Which when executed will run in sequence to produce the expected output. So, you can start writing a batch file using simple notepad, and you need only command shell like command.com or cmd.exe to run it on windows.

LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 200 total points
ID: 37058829
Use notepad or just any other plain text editor!
LVL 47

Expert Comment

ID: 37058833
Does this have anything to do with Java Programming Language?

Author Closing Comment

ID: 37058854
I guess I posted this in the wrong place.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question