Join
the community
Sign-up
Ask a question »

Batch file

May 2013


Batch file






DOS is integrated in windows which allow to exploit functionality and command sequence in a script. A batch file is a text file which contains command to be read by DOS.

This file can be launched from the DOS or directly by double click from Windows.

Settings


Before creating the file:
Uncheck the box "Hide file extensions of the type known in the advanced options of Windows Explorer"

Use a text editor that saves the file in plain text (notepad)

File Creation


Open your text editor.

Copy the command lines.

Save your file with the extension. Txt (plain text) and close it.

Click once on the file name and then press the F2 key: you're in "edit mode".

Rename the file by replacing the .Txt .Bat(or .Cmd for recent OS)

At the question: "Do you really want to rename the file?" click on "Yes".

See also

Knowledge communities.

Published by netty5 - Latest update by jak58
This document entitled « Batch file » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.
Receive our newsletter

health.kioskea.net

Write in a batch file in text mode
The editor of Windows XP and Vista is in Qwerty?