OPENQ.ASP

<%@ LANGUAGE="VBSCRIPT" %> 

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>MSMQ Asp Sample Open Queue Page</TITLE>
</HEAD>
<BODY>
<H1>MSMQ Asp Sample Open Queue Page</H1>
<H2>Opening Queue : <%= Request.QueryString ( "MachineName" ) & "\" & Request.QueryString ( "QueueName" ) %></H2>
<% Set msmqinfo=CreateObject ( "MSMQ.MSMQQueueInfo" )
msmqinfo.PathName=Request.QueryString ( "MachineName" ) & "\" & Request.QueryString ( "QueueName" )
Set Session ( "SendQueue" ) = msmqinfo.Open ( 2, 0 )
Set Session ( "RecvQueue" ) = msmqinfo.Open ( 1, 0 )
set msmqinfo=Nothing
Session ( "qname" ) = Request.QueryString ( "QueueName" )
Session ( "mname" ) = Request.QueryString ( "MachineName" )
%>
<A HREF="Default.asp">[Home]</A>
</BODY>
</HTML>