windows-nt/Source/XPSP1/NT/inetsrv/msmq/sdk/samples/mqasp/createq.asp

28 lines
844 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>MSMQ ASP Sample Page</TITLE>
</HEAD>
<BODY>
<H1>MSMQ ASP Sample Create Queue Page</H1>
<H2>Creating Queue : <%= Request.QueryString ( "MachName" ) & "\" & Request.QueryString ( "QName" ) %><br>
<% Set msmqinfo=CreateObject ( "MSMQ.MSMQQueueInfo" )
msmqinfo.PathName=Request.QueryString ( "MachName" ) & "\" & Request.QueryString ( "QName" )
on error resume next
msmqinfo.Create
if err.number <> 0 then
response.write "<font color=""#FF0000"">Error</font> 0x" & Hex(Err.Number) & " - " & Err.Description & "<br><br>"
else
response.write "Queue created.<br><br>"
end if
Set msmqinfo=Nothing
%>
</H2>
<A HREF="Default.asp">[Home]</A>
</BODY>
</HTML>