Need to batch a weekly purge of the System queue journal.
A:
MessageQueue mq = new MessageQueue(".\\Journal$");
mq.Purge();
or
MessageQueue mq = new MessageQueue(".\\myQueue\\Journal$");
mq.Purge();
if its for a queue you created. Make sure the user has the correct permissions. See: http://msdn.microsoft.com/en-us/library/system.messaging.messagequeue.aspx
SpaceghostAli
2009-06-30 12:49:38
A:
MessageQueue mq = new MessageQueue("DIRECT=OS:computername\SYSTEM$;JOURNAL");
mq.Purge();
Igal Serban
2009-07-17 21:22:08