‘ Neue Textdatei erzeugen bzw. erstellen mit VBScript

datei = “C:\Temp\vbs-files\token.txt” ‘ Pfad und Name für die neue Textdatei

Set objfs = CreateObject(“Scripting.FileSystemObject”)
Set objstream = objfs.CreateTextFile(datei) ‘ Textdatei erzeugen bzw. erstellen
objstream.WriteLine Now
objstream.WriteLine vbcrlf
objstream.close
WScript.Echo “Datei erzeugt: ” & datei


Leave a Comment


You must log in to post a comment.