paulnordstrom Posted October 27, 2006 Share Posted October 27, 2006 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 More sharing options...
paulnordstrom Posted October 27, 2006 Author Share Posted October 27, 2006 OH YEAH - i figured it out...as it turns out, im an idiot. I just had to use the ascii symbol instead: act.WriteLine("<" & Chr(37) & "") act.WriteLine("Dim PHS_setID") act.WriteLine("PHS_setID = " & rsSetup("ID") & "") act.WriteLine("" & Chr(37) & ">") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now