Wouldn't it be great if there was a batch file that would run every time you turned your computer on? You could make it automatically set your custom prompt and search path, or anything.

It's called autoexec.bat, which is short for Autoexecutable. It was especially valuable in the old days of MS-DOS, though for us today it isn't worth quite as much. It corresponds to the "Startup" menu in modern Windows computers.

Unfortunately, in many new computers, the autoexecutable file doesn't work because of compatibility issues. In Windows Me it only stores "SET" commands (those will be dealt with in the near future), and in Windows XP it simply is never accessed. In Windows XP there is a file called autoexec.nt, which is run every time the Command Prompt opens. I believe it is in C:\windows\system32, but I am not sure.

 

Proceed:   <-- Batch Operations     --> Programming in Batch
 

Back to the Hub