Use a Scripting.FileSystemObject instance. The OpenTextFile method can open text files
ForAppending.
OpenTextFile Method
http://msdn.microsoft.com/scripting/VBScript/doc/vsmthOpenTextFile.htm
The EXE links below are downloads of the complete documentation sets in HTMLHelp format - highly
recommended for offline use. The Tutorial and "...User's Guide" content is also included in the
downloaded documentation...
WSH 2.0 Tutorial
http://msdn.microsoft.com/scripting/windowshost/doc/wsTutorialTOC.htm
WSH Documentation
http://msdn.microsoft.com/scripting/windowshost/docs/reference/defaul...
http://msdn.microsoft.com/scripting/windowshost/wshdoc.exe
VBScript User's Guide
http://msdn.microsoft.com/scripting/vbscript/doc/vbstutor.htm
VBScript Documentation
http://msdn.microsoft.com/scripting/vbscript/techinfo/vbsdocs.htm
http://msdn.microsoft.com/scripting/vbscript/download/vbsdoc.exe
FileSystemObject User's Guide
http://msdn.microsoft.com/scripting/vbscript/doc/jsFSOTutor.htm
VBScript Run-Time Library Reference [FileSystemObject/Dictionary]
http://msdn.microsoft.com/scripting/vbscript/doc/VBSFSOTOC.htm
JScript User's Guide
http://msdn.microsoft.com/scripting/jscript/doc/jsconJScriptUsersGuid...
JScript Documentation
http://msdn.microsoft.com/scripting/jscript/techinfo/jsdocs.htm
http://msdn.microsoft.com/scripting/jscript/download/jsdoc.exe
WSC Tutorial
http://msdn.microsoft.com/scripting/scriptlets/doc/lettitle.htm
WSC Documentation
http://msdn.microsoft.com/scripting/scriptlets/serverdocs.htm
http://msdn.microsoft.com/scripting/scriptlets/wscdoc.exe
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> I am relatively new to the Scripting world and I have a question that I hope
> is easily answered. I am writing a script that includes a backup routine.
> In the backup routine I am replacing several files, but I also need to
> append a text file to an existing file. (To keep a running total of all
> transactions) What is the best/easiest way to do this in WSF.
> Thanks in advance for your help.
> John Baker