| |
Tory
Posts: 16
Score: 0
Joined: 11/13/2001
From: USA
Status: offline
|
FileSystemObject (FSO) mostly. Check it out here: http://www.devguru.com/Technologies/vbscript/quickref/objects.html Here is an example that will invoke FSO, create a text file, write to it and then delete it.... Dim theTextFileName, fso, objFile theTextFileName = "C:\textfile.txt" 'Sets up a variable as the file name Set fso = CreateObject("Scripting.FileSystemObject") 'initalize the FSO object Set objFile = fso.CreatetextFile(theTextFileName, TRUE) 'Makes the file objFile.writeline("Your text goes here") 'Writes a line to the file objFile.close 'closes the file fso.DeleteFile theTextFileName, TRUE ' Deletes the file Set fso = Nothing Set objFile = Nothing -Tory
|
|