Click to See Complete Forum and Search --> : VB Script Object Creation Troubles


Richard
01-23-2002, 02:57 PM
I wrote the following very simple test ASP page in Visual InterDev, which
worked just fine on my IIS 4.0 Web Server:

<%@ Language=VBScript %>
<HTML>
<BODY>
<% dim cb
set cb = createobject("scripting.filesystemobject")
response.write cb.Drives.count
set cb = nothing
%>
</BODY>
</HTML>

I wrote the following Cold Fusion (CFM) page, and it tells me it can't create
the ActiveX Object:

<html>
<head>
</head>
<body>
<script language="VBScript" >
dim cb
set CB = createobject("scripting.filesystemobject")
set cb = nothing
</script>
</body>
</html>


What am I doing wrong ?