Writing to a Text File

Creating text files using VBScript is cool but rather useless unless you can also add information to them. Writing information to a text file gives you a way to save information. In addition, it’s a good way to create a log file to track the progress of various automated administrative tasks. You use the WriteLine method to write to a text file.

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.