Scripting School: Writing output to a text file
One problem with producing output from a script is that it's temporary. Here's how you can make your scripts write the output to a text file using the File System Object.
By writing the output of your scripts to a file, you can preserve important output instead of just echoing to the...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
screen. You can display hard-coded text and variable values or you can even operate on variables and show the results in the text file.
And, of course, you can time-stamp the text file to show when you created it.
Scripting School: Writing output to a text file
- Summary
Read all of Christa's scripting columns:
- April 2005: Beginner's guide to scripting
- May 2005: It's time to increase your scripting expertise
- June 2005: Connect users to network resources
- July 2005: More on connecting to network resources
- August 2005: Find objects with Windows Scripting Host
- September 2005: Windows Script Host arguments
- October 2005: Scripting School: Turning the environment with WshShell
- November 2005: Scripting School: Connect scripts to remote computers
ABOUT THE AUTHOR:
A Terminal Services MVP, Christa Anderson is the strategic technology manager for visionapp She formerly was program manager for the Microsoft Terminal Services team. She is an internationally known authority on scripting, the author of Windows Terminal Services, The Definitive Guide to MetaFrame XP, and co-author of the book Mastering Windows 2003 Server. If you have a scripting question for Christa, please e-mail her at editor@SearchWincomputing.com. She often uses these emails as fodder for her scripting columns.
Start the conversation
0 comments