Guest_imported
New member
- Jan 1, 1970
- 0
Hello!!
I'd really apreciate any help on this... I've spent hours and it doesn't go anywhere...
There is no bug, but, the file is not created (or updated if it's there)... basically, nothing happens...
The code is:
Dim Fso
Dim fileObject
dim f
const ForWriting = 2
const TristateTrue = 0
Set fso = CreateObject("Scripting.FileSystemObject"
If FSO.FileExists("c:\test.inc"
then
Set fileObject = fso.GetFile("c:\test.inc"
set f = fileObject.OpenAsTextStream (ForWriting,TristateTrue)
f.write result
Else
set fileObject = fso.CreateTextFile("c:\test.inc", TristateTrue)
Set f = fs
penTextFile("c:\test.inc", ForWriting, TristateTrue)
f.Write result
fileObject.Close
Response.Write f.name & " file created"
End If
Set FSO = Nothing
Thank you sooo much!!!!
I'd really apreciate any help on this... I've spent hours and it doesn't go anywhere...
There is no bug, but, the file is not created (or updated if it's there)... basically, nothing happens...
The code is:
Dim Fso
Dim fileObject
dim f
const ForWriting = 2
const TristateTrue = 0
Set fso = CreateObject("Scripting.FileSystemObject"

If FSO.FileExists("c:\test.inc"

Set fileObject = fso.GetFile("c:\test.inc"

set f = fileObject.OpenAsTextStream (ForWriting,TristateTrue)
f.write result
Else
set fileObject = fso.CreateTextFile("c:\test.inc", TristateTrue)
Set f = fs

f.Write result
fileObject.Close
Response.Write f.name & " file created"
End If
Set FSO = Nothing
Thank you sooo much!!!!