Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing CreateObject

Status
Not open for further replies.

spiderman0009

Technical User
Feb 19, 2002
23
CA
Help, New to using objects. All my other example work. Can you please tell me if you have to have these objects installed on your server to access these objects. Or is this a pretty safe object to use? I am confused on this issue of objects. My hosting is here... Thank you Troy

<% Option Explicit %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;>
<%
Dim filesys, txtfile
Set filesys = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set txtfile = filesys.CreateTextFile(&quot;txtfile.WriteLine(&quot;This is the first line of my new file!&quot;)
txtfile.Close
Set filesys = Nothing

%>
</body>
</html>
 
use Server.CreateObject(.......

Hope this helps....

Regards
Niraj [noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top