|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Error
Hi
I have created awebpage thru which i create a file and write some data into it.Problem is i couldnt able to create a file.can anybody check the code and find out the error It is in VBSCRIPT. <html> <title> Writing a file </title> <head> <script language="VBScript"> sub cmdWrite_OnClick dim filesys, demofile, txtstream set filesys = CreateObject ("Scripting.FileSystemObject") set demofile = filesys.CreateTextFile ("c:\hellotest.txt", true) set demofile = filesys.GetFile("c:\hellotest.txt") set txtstream = demofile.OpenAsTextStream (2, -2) txtstream.Write "This will overwrite any text already in the file." txtstream.Close End Sub </script> </head> <body> <form name="frmExe"> <input type="Submit" Name="cmdWrite" value="Click"> </form> </body> </html> |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|