Click here to Skip to main content
15,898,938 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRun File Pin
Mazdak12-May-03 5:17
Mazdak12-May-03 5:17 
GeneralRe: Run File Pin
antbates12-May-03 5:22
antbates12-May-03 5:22 
GeneralRe: Run File Pin
Mazdak12-May-03 5:28
Mazdak12-May-03 5:28 
QuestionRemote DB? Pin
sindhu2k11-May-03 8:32
sindhu2k11-May-03 8:32 
AnswerRe: Remote DB? Pin
Nick Parker11-May-03 10:54
protectorNick Parker11-May-03 10:54 
GeneralVBScript (File System Object) Pin
Daron Tan11-May-03 5:37
Daron Tan11-May-03 5:37 
GeneralRe: VBScript (File System Object) Pin
Sarvesvara (BVKS) Dasa11-May-03 7:38
Sarvesvara (BVKS) Dasa11-May-03 7:38 
GeneralRe: VBScript (File System Object) Pin
sindhu2k11-May-03 8:10
sindhu2k11-May-03 8:10 
I think the problem is with the file path.
try this one...

<%
call CreateTemp

sub CreateTemp()
Dim fso, InputaimlFile, OutputaimlFile, sLn, fileName
fileName = Server.MapPath("Test.txt")

Set fso = CreateObject("Scripting.FileSystemObject")
Set OutputaimlFile = fso.CreateTextFile(fileName, True)
OutputaimlFile.WriteLine("This is a test.")
OutputaimlFile.Close
End sub
%>

It will create the text file in the same folder as you .asp file is saved.
GeneralRe: VBScript (File System Object) Pin
sindhu2k11-May-03 8:21
sindhu2k11-May-03 8:21 
GeneralArabic , Access , ASP 3.0 Pin
Hesham Amin11-May-03 4:00
Hesham Amin11-May-03 4:00 
GeneralI'm going mad Pin
Roger Wright10-May-03 23:53
professionalRoger Wright10-May-03 23:53 
GeneralRe: I'm going mad Pin
Sarvesvara (BVKS) Dasa11-May-03 2:08
Sarvesvara (BVKS) Dasa11-May-03 2:08 
GeneralRe: I'm going mad Pin
Roger Wright11-May-03 7:51
professionalRoger Wright11-May-03 7:51 
GeneralRe: I'm going mad Pin
Nick Parker11-May-03 11:34
protectorNick Parker11-May-03 11:34 
GeneralRe: I'm going mad Pin
Roger Wright11-May-03 12:00
professionalRoger Wright11-May-03 12:00 
GeneralRe: I'm going mad Pin
Nick Parker11-May-03 12:24
protectorNick Parker11-May-03 12:24 
GeneralRe: I'm going mad Pin
Roger Wright11-May-03 12:36
professionalRoger Wright11-May-03 12:36 
GeneralRe: I'm going mad Pin
Sarvesvara (BVKS) Dasa12-May-03 2:09
Sarvesvara (BVKS) Dasa12-May-03 2:09 
GeneralGeo URL Pin
Davy Mitchell10-May-03 20:45
Davy Mitchell10-May-03 20:45 
GeneralRe: Geo URL Pin
Paul Watson26-May-03 3:40
sitebuilderPaul Watson26-May-03 3:40 
QuestionTrim() function in JavaScript? Pin
TPN10-May-03 1:01
TPN10-May-03 1:01 
GeneralSWIFT Pin
Waleed Eissa8-May-03 12:51
Waleed Eissa8-May-03 12:51 
GeneralProgrammatic Location of TextBoxes Pin
Mike L.8-May-03 12:51
Mike L.8-May-03 12:51 
GeneralRe: Programmatic Location of TextBoxes Pin
DFU2311-May-03 17:20
DFU2311-May-03 17:20 
GeneralRe: Programmatic Location of TextBoxes Pin
Mike L.12-May-03 19:17
Mike L.12-May-03 19:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.