|
Change
Open "c:\testfile.txt" for Output as #2 Open
"c:\testfile.txt" for append as
#2 From: Barker-Lacerda , Michelle [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 1:13 PM To: [EMAIL PROTECTED] Subject: RE: [Talk] Appending to an output file Here's how I do it.
Const ForAppending = 8
Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile("C:\ScriptLogs\ScriptAlert.txt", ForAppending, True) . . ' steps
.
strErrorTxt =
strToEmail & " " & strScriptName & " " & Err & " " &
Err.Description & strErrorTxt & " " & Now()
f.WriteLine strErrorTxt .
.
.
f.Close 'close file when script has completed Michelle
617-665-3432
*************** Satilla Health Services advises the recipient that this electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. If you are not the intended recipient of this e-mail, you are cautioned that the use of its contents in any way is prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by e-mail or telephone and return the original message by e-mail to the sender. We will reimburse you for any cost you incur in notifying us of the errant e-mail. ***** |
Title: Message
- [Talk] Appending to an output file Ross Stolle
- RE: [Talk] Appending to an output file Linda Ralston
- RE: [Talk] Appending to an output file Barker-Lacerda , Michelle
- RE: [Talk] Appending to an output file Barry Rudd
- RE: [Talk] Appending to an output file Ross Stolle
- RE: [Talk] Appending to an output file Angela LaVasser
- RE: [Talk] Appending to an output file Angela LaVasser
- [Talk] Appending to an output file David Shelby
- RE: [Talk] Appending to an output file David Shelby
- RE: [Talk] Appending to an output file David Shelby
