Hey!could someone get this script working for me.It is a script to write user input to a text file:-
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Const TristateFalse = 0
Const TristateTrue = -1
Const TristateUseDefault = -2
Dim title
Dim paragraph
Dim afile
Dim ts
Dim fs
title = "Writing to File"
paragraph = inputbox("enter your text"
Set fs = CreateObject("Scripting.FileSystemObject"
' open file to write to, create if not there, using ASCII
afile ="C:\WINDOWS\Desktop\New text Document(5)"
Set ts = fs.OpenTextFile(afile, 8 , -1)
ts.WriteLine title
ts.WriteBlankLines(1)
ts.WriteLine paragraph
ts.Close
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Const TristateFalse = 0
Const TristateTrue = -1
Const TristateUseDefault = -2
Dim title
Dim paragraph
Dim afile
Dim ts
Dim fs
title = "Writing to File"
paragraph = inputbox("enter your text"
Set fs = CreateObject("Scripting.FileSystemObject"
' open file to write to, create if not there, using ASCII
afile ="C:\WINDOWS\Desktop\New text Document(5)"
Set ts = fs.OpenTextFile(afile, 8 , -1)
ts.WriteLine title
ts.WriteBlankLines(1)
ts.WriteLine paragraph
ts.Close