Jump to content

FileSystemObject: CreateTextFile -- can I write vbscript???


paulnordstrom

Recommended Posts

Hello World...I am using the fso to create a file that sets a variable that I will use as an include throughout my site. The only problem is, it throws back an error when I try to write the vb tags (carret, percent)Here is what I'm trying to write:

set fso = createobject("scripting.filesystemobject")Set act = fso.CreateTextFile("\file_setID.asp",True)act.WriteLine("<%")act.WriteLine("Dim PHS_setID")act.WriteLine("PHS_setID = " & rsSetup("ID") & "")act.WriteLine("%>")act.close

Could I use the fso to open the file? Global asa?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...