Is it possible to purge a msmq queue from a bat file?
Essentially I want to make a bat file or at least something quick and easy so that an untrained employee can cl
Take a look on MSMQAdm Utility
Tasks administered through the utility programs include the following:
Don't forget about powershell, take a look on PowerShell Community Extensions
Update
Open powershell and write line by line
[Reflection.Assembly]::LoadWithPartialName("System.Messaging")
$queueName = '.\Private$\testQueue'
$queue = new-object -TypeName System.Messaging.MessageQueue -ArgumentList $queueName
$queue.Purge()
Call powershell from cmd
The easiest way call script from cmd.
powershell.exe -executionpolicy Unrestricted C:\purgemsmq.ps1