Adam, I opened up MS Visual Interdev (just for the editor), added a new asp page (this creates everything except <% your code %>) and ran it (view in browser).
The file c:\test.txt was created and the text was written as requested. So, it appears to work on my W2K machine (IIS). Regards B.B. <%@ Language=VBScript %> <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> </HEAD> <BODY> <% Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.CreateTextFile("c:\test.txt", True) a.WriteLine("This is NOT a test.") a.Close %> </BODY> </HTML> -----Original Message----- From: Adam Cork [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 12:37 PM Subject: RE: ASP FSO I'm not trying to get anything in the browser window, I'm just trying to get the asp to create a file and write one line to it, that's it. Once it does that I'll go on from there. I did originally had a small amount of HTML on the page just to confirm that the page had completed, but that didn't make any difference, just sat there as if the page was loading, no errors, no page, no file. No idea why this won't work. Any suggestions? Cheers, Adam ----- Original Message ----- From: "J.R. Pitts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 2:52 PM Subject: [wdvltalk] RE: ASP FSO If you're not sending HTML or text from your file, then what are you expecting to see on your browser window? I suspect your code is working, because if it generated errors, you would see them. If nothing else, throw in a response.write("Done") for testing purposes. J.R. -----Original Message----- From: Adam Cork [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 9:29 AM To: [EMAIL PROTECTED] Subject: [wdvltalk] RE: ASP FSO No, I'm just running the asp, there's no HTML on the page, but this should run fine, i've run plenty of test pages before that run fine in this way. Cheers, Adam ----- Original Message ----- From: "J.R. Pitts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 2:02 PM Subject: [wdvltalk] RE: ASP FSO You are putting the code below in a standard HTML wrapper, right? You can't just run code and send nothing to the browser. <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> <% your code %> </BODY> </HTML> If not, then the browser never knows there is a page. It will sit and wait for HTML markup forever (well, it'll eventually time out.) If you already have the HTML in there and its not working, try disambiguating your object. (Server.CreateObject("Sc.... J.R. -----Original Message----- From: Adam Cork [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: [wdvltalk] RE: ASP FSO OK, would have made sence, Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.CreateTextFile("c:\test.txt", True) a.WriteLine("This is a test.") a.Close straight from the help file. Running Win2K, IIS Cheers, Adam ----- Original Message ----- From: "J.R. Pitts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 1:46 PM Subject: [wdvltalk] RE: ASP FSO Probably is something simple. <subtle> But how are we to know? </subtle> <nosubtle> *post your code!* </nosubtle> J.R. -----Original Message----- From: Adam Cork [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:07 AM To: [EMAIL PROTECTED] Subject: [wdvltalk] ASP FSO Hi list, Recently there was some mention of the FileSystemObject. I'm trying to run a script to create a file, i've just taken the example code from the help file to create a text file and write a single line out to it, just to get it working, but when i run the page all it does is sit there loading the page for ages. I'm assuming there's got to be something simple. Any ideas? Cheers, Adam ____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% ____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% ____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% ____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% ____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% ____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% ____ • The WDVL Discussion List from WDVL.COM • ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]