AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

Add a line to the autoexec.bat

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.

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/