answersLogoWhite

0

-What is the use of Batch File?

Updated: 8/17/2019
User Avatar

Wiki User

12y ago

Best Answer

Batch files:

  • .bat
  • .cmd
  • .bht

They allow your PC to quickly process commands.

They do the work for you.

ex.

@echo off

start cmd.exe

exit

^ This would be used to open command prompt.

They are based of of basic programming language with commands like:

  • if
  • start
  • goto
  • exit
  • set
  • del
  • %variable%
  • echo

These combine to run programs.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

It runs code in the command prompt

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: -What is the use of Batch File?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Batch File Maker?

you can use notepad for creating a batch file. just when you save the file that you made, add .bat as a file extension. like this: "sample.bat".


What program do you use to open a batch file?

Hey want to learn batch?? Well a batch file does not need a program (I.E a compiler or interpreter) like in other languages like C++ and Python. No a batch file is just saved a certain way.


How to use a prompt in a batch file?

sample of prompt in batch file: echo. echo prompt jade $p$g echo. pause


What is the extension of batch file?

the extension of a batch file is ".bat"


How to create a batch file and impliment it?

To create a batch file open notepad, textedit, or whatever editor you wish to use. Once open write your program, check for errors, and "make simple text." Save this program as whateveryouwant.bat. Open the file and the batch file will execute.


How do you enter username and password with a batch file?

You can use the run as command in the batch file if you are using windows xp and i think with wondows 2000, unfortunatly it is open text so you have to use another programme to do that.


Which keys are used to terminate a batch file?

The Ctrl + C combination. You an also use the Ctrl + Alt + Del combination, start Task Manager, and close the batch file from there.


Can a file with a weird extension but with batch file code be read using another batch file?

Nope, the format of a file is a vital part of a successful batch file. Even if a file with an unknown file format contains working batch file code in it, a batch file will still not be able to read it because of its foreign file extension. If you want the batch file to be able to read the foreign file, then you can set it to rename the mutated file to .bat format and then read it for it to work. Example: @Echo off REN File.Foreign File.bat CALL File.bat exit


What is a batch file?

A batch file is the text file that contains a series of commands that MS-DOS carries out. A batch file is created by COPY CON command after specifying a file name by using extension as .BAT in DOS mode.


How do you extract code from batch file?

You can just open the batch file with notepad and look at the code


Is there any batch file editor to create batch file without learning syntax?

You can't download a program that makes a batch file to do what you want to do. You will need to legally learn about hacking, and then write the file yourself.


A file with a bat file extension is called an what?

A batch file.