VBScript Basics, Part 22 | Append Files (OpenTextFile)
188 بار بازدید -
7 سال پیش
-
VBScripting (.vbs) Basic tutorial on
VBScripting (.vbs) Basic tutorial on how to use the OpenTextFile command to edit text files (.txt .doc .rtf .bat .vbs etc...)
Code Example:
______________________________________________________
Option Explicit
Dim fso, objWRITE, objREAD, CD, current, create
Const vbRead=1, vbAppend=8
Set fso = CreateObject("Scripting.FileSystemObject")
CD = Replace(Wscript.ScriptFullName, Wscript.ScriptName, "new.doc")
'-----------------------------
'SETUP PROCESS
'-------------------
7 سال پیش
در تاریخ 1396/10/06 منتشر شده
است.
188
بـار بازدید شده