Hello programmers:
Please I need your help. Everytime that I run this code I got the following error:
--> Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/masterfolder/yougotmail.asp, line 134
-->Line 134 is the following:
Set ts = fs
penTextFile(strPath ,1)
I am submitting my code. Could you please check what I am doing wrong.
Thanks to all and have everyone a safe and Happy Thanksgiving!!!
Daniel
Hollywood, FL
'**************************************************
<%@ Language=VBScript%>
<% option Explicit %>
<%
dim ts, fso, strText
dim sFrom, sTo, sSubject, sDepartment
'** Getting the files for the big querystring
sFrom = trim(Request.Querystring("From"
)
sTo = trim(Request.Querystring("To"
)
sSubject = trim(Request.Querystring("Subject"
)
sDepartment = trim(Request.Querystring("Department"
)
ReadingTextFile()
'==========
'Subroutines
'==========
Sub ReadingTextFile()
dim strPath
strPath = "\\sv5001\MassEmail\FS-1RECEIVED-EMAILS\xH1ERE021_01901.txt"
Set fso = server.CreateObject("Scripting.FileSystemObject"
Set ts = fs
penTextFile(strPath ,1)
Do while not ts.AtEndOfStream
strText = ts.Readline
'Some process here
Loop
ts.close
set ts = nothing
ts = nothing
end sub
%>
Please I need your help. Everytime that I run this code I got the following error:
--> Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/masterfolder/yougotmail.asp, line 134
-->Line 134 is the following:
Set ts = fs
I am submitting my code. Could you please check what I am doing wrong.
Thanks to all and have everyone a safe and Happy Thanksgiving!!!
Daniel
Hollywood, FL
'**************************************************
<%@ Language=VBScript%>
<% option Explicit %>
<%
dim ts, fso, strText
dim sFrom, sTo, sSubject, sDepartment
'** Getting the files for the big querystring
sFrom = trim(Request.Querystring("From"
sTo = trim(Request.Querystring("To"
sSubject = trim(Request.Querystring("Subject"
sDepartment = trim(Request.Querystring("Department"
ReadingTextFile()
'==========
'Subroutines
'==========
Sub ReadingTextFile()
dim strPath
strPath = "\\sv5001\MassEmail\FS-1RECEIVED-EMAILS\xH1ERE021_01901.txt"
Set fso = server.CreateObject("Scripting.FileSystemObject"
Set ts = fs
Do while not ts.AtEndOfStream
strText = ts.Readline
'Some process here
Loop
ts.close
set ts = nothing
ts = nothing
end sub
%>