How to create a batch file

By arjun_chune ·
How do i create a batch file and how to execute them?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by Churdoo In reply to How to create a batch fil ...

Open Notepad and type your batch file. Then File / Save As. In the Save As dialogue box, Navigate to where you want to place the batch file (suggest creating a folder c:\batch or similar) / give it a file name with .BAT on the end (i.e. mybatch.bat) / be sure to change the "Save as type" to All Files / then click Save. Once the file is created, editing is easier, simply navigate to the file with Explorer, right-click the file's icon, and click Edit.

To execute, simply navigate to the file with Explorer and double-click the file's icon.

For testing however, this will not show you if you have any errors in your batch file. so for testing, open up a CMD prompt. Start / Run / type CMD / click OK. Change directory to where you saved the .BAT file; for example, enter "CD \BATCH". Once your CMD prompt is in the directory where the .BAT file is stored, simply enter the name of the file to execute it.

Once you've tested the batch file, you can schedule it as a Scheduled Task if it's something that needs to be run regularly at specific times.

Collapse -

This may help

by Jacky Howe In reply to How to create a batch fil ...

give you a better understanding. Have a look around.

Collapse -

True Blue "perfect site "

by alashhar In reply to This may help

thank you for the site

Collapse -

Youre Welcome :)

by Jacky Howe In reply to True Blue "perfect site "

Rob has been around for a long time. He has a lot of interesting tips.

Another interesting site.

Related Discussions

Related Forums