
bat containing a series of commands to be executed by the command interpreter.īatch files are used to ease the work required for certain regular tasks by allowing the user to set up a script to automate them. In DOS and Windows, batch file is the name given to a type of script file, a text file with filename extension. But he never revealed the secret he was doing. He was creating one bat file or precisely saying, he was editing the Autoexec.bat file. It took me a few months to detect what exactly he was doing. He was doing something to make that DOS software functioning in any directory. One of the DOS program which was the main program used then was opening in the directory in which it was installed and not opening in any other directory we wanted. He was dare enough to give a bill with description that “installation of Windows” The OS CD supplied along with computer was somewhere in the cupboard and we were not aware of the CD supplied was a licensed version.



Then, just point your shortcut to "My Batch File.bat".no need to run it with CMD /K.

If that is really all the batch file is doing, remove the cmd /K and add PAUSE.
