Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
844 B

  1. <%@ LANGUAGE="VBSCRIPT" %>
  2. <HTML>
  3. <HEAD>
  4. <META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
  5. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  6. <TITLE>MSMQ ASP Sample Page</TITLE>
  7. </HEAD>
  8. <BODY>
  9. <H1>MSMQ ASP Sample Create Queue Page</H1>
  10. <H2>Creating Queue : <%= Request.QueryString ( "MachName" ) & "\" & Request.QueryString ( "QName" ) %><br>
  11. <% Set msmqinfo=CreateObject ( "MSMQ.MSMQQueueInfo" )
  12. msmqinfo.PathName=Request.QueryString ( "MachName" ) & "\" & Request.QueryString ( "QName" )
  13. on error resume next
  14. msmqinfo.Create
  15. if err.number <> 0 then
  16. response.write "<font color=""#FF0000"">Error</font> 0x" & Hex(Err.Number) & " - " & Err.Description & "<br><br>"
  17. else
  18. response.write "Queue created.<br><br>"
  19. end if
  20. Set msmqinfo=Nothing
  21. %>
  22. </H2>
  23. <A HREF="Default.asp">[Home]</A>
  24. </BODY>
  25. </HTML>