
Problem of Passing value from .asp to .vbs
Hello,
Could anyone "Please Help" me with these :
1) I need to pass a value from asp like this <% rstSearch("ImgFileName")%>
to a .vbs program.
Actually i am calling the vbs like this <a href = "Imaging.vbs"</a> but
before it call the imaging.vbs can i pass the value of <%
rstSearch("ImgFileName")%> (path to my image) to the imaging.vbs so that the
vbs know where to open the image file.
2) I need to write something from asp into a text file. In MSDN i get this
code like below:
<HTML>
<BODY>
<H3>Textstream test</H3>
<%
Set OutStream = Server.CreateObject("MS.ITextStream")
OutStream.CreateTextFile "tsworks.txt", , True
OutStream.WriteLine "This line is written to the file."
%>
</BODY>
</HTML>
I get this error. Do you know how to solve this problem?
Textstream test
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/Project2/new.asp, line 5
Invalid class string
Thanks in advanced
Regards,
kim