Tag:Add content

  • VBS function to add content to the specified file

    Time:2022-5-5

    Copy codeThe code is as follows: ‘write a string to the specified file, and the third parameter specifies whether to delete the original content Function Z_WriteFile(sFileName, sText, bAppend) Dim fs, fso, iomode if bAppend = True Then iomode = 8 ‘ForAppending else iomode = 2 ‘ForWriting end if set fs = CreateObject(“Scripting.FileSystemObject”)set fso = fs. […]