Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


saving to a text file from VB

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3532
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> saving to a text file from VB
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 saving to a text file from VB - 6/26/2005 10:46:53 AM   
  agentof7

 

Posts: 5
Score: 0
Joined: 6/22/2005
From:
Status: offline
Does anyone know any code where an HTML website can write to a text file? All i need is code when a user types in a number in a website, the number is saved to a text document. Can VBscript be incorproated in the website to accomplish this task?
Thx
 
 
Post #: 1
 
 Re: saving to a text file from VB - 6/26/2005 7:45:59 PM   
  ehvbs

 

Posts: 2220
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
To save data to file you may use code like this:

      
Whether IE allows the creation of an ActiveX FileSystemObject
and writing to sFSpec (especially without asking for user permission)
depends on the security options effective at the local system.

If you want to save the data on the server you obviously must
set sFSpec according to some specific property of the requesting
client - perhaps you should consider using some kind of database.

(in reply to agentof7)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> saving to a text file from VB Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts