ok i have the code below open a file, but it opens a file from the computer the page is accessed from and not a file from where the html doc exists. and if i try take away the c:\ then it cant find the file at all...
(this is only a section of the code, i do a lot of work with the file. which all works fine)
thanks in advanced..
Regards
Dal
##########################
# #
# Darren@DGoulston.com #
##########################
(this is only a section of the code, i do a lot of work with the file. which all works fine)
Code:
<html>
<head>
<script language="vbscript">
Option Explicit
Sub tstvb()
dim filesys, readfile
set filesys = CreateObject("Scripting.FileSystemObject")
set readfile = filesys.OpenTextFile("c:\auth.txt", 1, false)
end sub
</script>
</head>
<body>
<script language="vbscript">
call tstvb()
</script>
<br><br>
</body>
</html>
thanks in advanced..
Regards
Dal
##########################
# #
# Darren@DGoulston.com #
##########################