dcsimg
August 21, 2018
Hot Topics:

Add a Line to the Autoexec.bat

  • November 19, 2002
  • By John Percival
  • Send Email »
  • More Articles »

Do you need to add a DOS driver or TSR into the autoexec.bat or config.sys file? The easiest way to do this is to open the file for "Append". If there is not already a file, it creates one, othewise, it adds the text to the end of the file:

Open "c:\autoexec.bat" For Append As #1
Print #1,mynewcommand
Close #1

This will add the text in mynewcommand to the end of the autoexec.bat file. New lines are automatically inserted after the end of each Print statement, so no need to add vbNewLine to each string.






Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

Thanks for your registration, follow us on our social networks to keep up-to-date