Current location: Hot Scripts Forums » Programming Languages » Visual Basic » problem with FSO


problem with FSO

Reply
  #1 (permalink)  
Old 09-11-06, 08:37 AM
jackli jackli is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile problem with FSO

Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>Untitled-1</title>

<script language="VBScript">
sub Submit_onClick()
   Dim fso, tf, a
   a = form1.text.Value
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set tf = fso.CreateTextFile("C:\exobudpl.js", True)

   tf.WriteLine(a) 
   tf.WriteBlankLines(3) 
   tf.Close
   
End Sub
</script>
</head>

<body>
<form id="form1" name="form1">
  <label>
  <textarea name="text" cols="100" rows="30" id="text"></textarea>
  </label><br>
  <input type="submit" name="Submit" value="submit">
</form>
</body>
</html>
I can write a txt file with the web when access without server.
but when i put the web on apache sever, it does not work..

So, what can i do? Can FSO script access without ASP server?
http://jackli.no-ip.com/3.html

Last edited by nico_swd; 09-11-06 at 08:53 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-11-06, 09:04 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Moving to... Visual Basic?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-11-06, 09:13 AM
jackli jackli is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thank you...
i'm waiting for reply= =
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 09-12-06, 01:27 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
The script will make the browser write a local file on the client computer.
To use FSO on the server, you probably need ASP and the IIS server.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 09-13-06, 10:45 AM
jackli jackli is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by TwoD
The script will make the browser write a local file on the client computer.
To use FSO on the server, you probably need ASP and the IIS server.
Can i make it by using VB or other language?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Display Problem neevrap02 Visual Basic 1 09-05-06 06:18 AM
bulk folder problem AimHigh PHP 2 06-09-06 04:06 AM
Weird mysql_query and Smarty problem Canglan PHP 3 11-15-05 09:49 PM
Count problem kasic ASP.NET 1 10-20-04 01:23 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 10:13 AM


All times are GMT -5. The time now is 12:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.