Wednesday, May 4, 2011

How to run DOS commands using .BAT file in Windows?

To create a batch file follow following steps:-
  1. Press window button + r, here type notepad & hit enter.
  2.      In notepad write commands of dos.     
  3.      Now goto save as option and save it as name.bat . Here name is user defined e.g. -nnn.bat or jkl.bat etc.
  4.      Now double click the created .bat file & commands of dos specified by you will run.
  5.      To edit .bat file right click on it & click edit.
Note - some commands run only with administrator privileges.

No comments:

Post a Comment