
August 16th, 2005, 10:13 AM
|
 |
Newton's Apple Wizard
|
|
Join Date: Nov 2003
Location: Los Angeles
|
|
|
Create File in ASP
asp Code:
Original
- asp Code |
|
|
|
<% Dim myFSO SET myFSO = Server.CreateObject("Scripting.FileSystemObject") If NOT myFSO.FileExists("C:\Inetpub\wwwroot\myNewFolder\myNewText.txt") Then myFSO.CreateTextFile("C:\Inetpub\wwwroot\myNewFolder\myNewText.txt") Else Response.Write "THIS FILE ALREADY EXISTS" End If SET myFSO = NOTHING %>
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|