satheeshm,
Would that just be added below the existing text?
Main Topics
Browse All TopicsI have been tasked with writing a VBScript that is being used to determine if our corporate antivirus definitions are over 7 days old. This will be used by our management platform to automatically generate an alert. I have been able to get it where it generates the output into a pop up window, but I need it to create a text file called vipreage.txt on the C: drive. I have been trying to find an answer to this but scripting has never been a strong suit of mine. Any help would be greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
no.. it creates a new file. you want create new file or you want to append to an existing text file.
to create a new file use the below code. I added code to your existing code.
Set objFSO = CreateObject("Scripting.Fi
Set objFile = objFSO.GetFile("c:\Program
wscript.echo DateDiff("d", objFile.DateLastModified, Now())
dim fname
set fname=fs.CreateTextFile("c
fname.WriteLine("Hello World!") \\ Change this to what ever you want to write into the file
fname.Close
set fname=nothing
set objFSO=nothing
Business Accounts
Answer for Membership
by: satheeshmPosted on 2009-05-14 at 12:01:50ID: 24388333
Hi,
ripting.Fi leSystemOb ject") :\test.txt ",true)
You are near to solution. you can create text file using file system object. Check the below code sample.
dim fs,fname
set fs=Server.CreateObject("Sc
set fname=fs.CreateTextFile("c
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing