How to get vbscript to append to a file instead of writing it over?
[ J ] a [ Y ] asked:
Hi all. I’m trying to get vbscript to append to a file instead of erasing it and writing to it from scratch. I’m not a big user of vbs and am just using it at work to get this one section of a project done. I’m probably just passing a wrong parameter or something. Any *pointers would be much appreciated.
Hi all. I’m trying to get vbscript to append to a file instead of erasing it and writing to it from scratch. I’m not a big user of vbs and am just using it at work to get this one section of a project done. I’m probably just passing a wrong parameter or something. Any *pointers would be much appreciated.
[code]
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objOutFile = objFSO.CreateTextFile("output.txt", 3, True)
[/code]
I’ve tried passing an ’8′ as the mode too (different sources argue over which argument gets you into appending mode), but no progress. Any tips?
sorry, removing the 3 didnt work. Any other advice?
Categories: Script Writing Tips Tags: Didnt Work, Pointers, Scratch, Scripting, Vbs, Vbscript File
