Hey,
I've got this VBScript function that
returns the path of a specified file
which I want to use in an ASP page but
get the following error:
Here is the code that gives
the above error:
I'm using Personal Web Server.
To run the ASP page, I type:
Which should display a page saying:
Path of database on server is:
C:\Inetpub\
Any ideas? Perhaps another way of doing it?
Thanks,
Steve.
I've got this VBScript function that
returns the path of a specified file
which I want to use in an ASP page but
get the following error:
Code:
Server object error 'ASP 0177 : 800a0035'
Server.CreateObject Failed
/myDir/myFile.asp, line 14
00000000
Here is the code that gives
the above error:
Code:
<% @ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>myFile.asp</TITLE>
</HEAD>
<BODY>
<%
Function GetFullPath(file)
Dim FSO, f
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set f = FSO.GetFile(file) 'this is the error line 14
GetFullPath = f.Path
End Function
Dim dbPATH
Set dbPATH = GetFullPath("myDatabase.mdb")
%>
Path of database on server is:<BR><%= dbPATH %>
</BODY>
</HTML>
I'm using Personal Web Server.
To run the ASP page, I type:
Which should display a page saying:
Path of database on server is:
C:\Inetpub\
Any ideas? Perhaps another way of doing it?
Thanks,
Steve.