Beginners question - textfiles

R

Rish

Hi there,
I was wondering if anyone could help me with this little problem. I
am running a Windows XP platform with IIS. I am using the following
code through Localhost to create a textfile:-

<%
Set fs = Server.CreateObject( "Scripting.FileSystemObject" )
Set textFile = fs.CreateTextFile( "c:\Inetpub\wwwroot\example.txt" )
textFile.WriteLine( "Example text" )
textFile.Close
%>

When I try to run this code through the browser, the page doesn't load
up...But instead the status bar keeps moving very very slowly.

Any ideas on this one?
Do I have to set anything up, if so please could someone point me in
the right direction...I am useless!!

Thanks,
Rish.
 
D

d.

Rish said:
Hi there,
I was wondering if anyone could help me with this little problem. I
am running a Windows XP platform with IIS. I am using the following
code through Localhost to create a textfile:-

<%
Set fs = Server.CreateObject( "Scripting.FileSystemObject" )
Set textFile = fs.CreateTextFile( "c:\Inetpub\wwwroot\example.txt" )
textFile.WriteLine( "Example text" )
textFile.Close
%>


If you're running an antivirus check: http://www.aspfaq.com/show.asp?id=2180

otherwise update your scripting module (www.msdn.com)

d.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top