MSMQ command line in win 7 - command-line

Is there a cmd line for MSMQ basic operation (get the queue size, purge queue).
I tried google it but did not get any think useful.

The simplest and the best way is to use powershell, take a look on PowerShell Community Extensions
and you'll be able to invoke following commnads
Clear-MSMQueue
Get-MSMQueue
New-MSMQueue
Receive-MSMQueue
Send-MSMQueue
Test-MSMQueue
See how to purge from cmd

Related

Benchmark A Page Via Windows Command Line and Powershell

I would like to benchmark the response time of a site as well as simulate a load via the windows command line (WIN+R)
Is this possible?
What is the windows equivalent of this linux command:
$ ab -n 1000 -c 5 http://yourpage.com
Extra Credit for Powershell 3 Equivalent
There is no equivalent built-in PowerShell cmdlet that does this. I see from ab's man page that your command sends 1000 requests, 5 at a time to the web server. You could roll your own solution in PowerShell using either the System.Net.WebClient or System.Net.HttpwebRequest classes, and implement concurrency with PowerShell jobs, parrallel for-loop workflows or asynchronous pipelines, however there are already solutions pre-built for this task like jmeter.

Executing a commandline from JConsole

I've recently discovered the joy of going through JConsole.exe instead of J.exe to run various scripts. There's generally a noticeable performance gain.
However, sometimes I need to use wd winexec (calling ad-hoc programs for example) and in the console, 11!:0 (wd) support is not available.
Is there a way to send a command from JConsole.exe to the regular Windows command line interpreter? Or maybe a workaround?
You might try the task script. See the script itself for documentation.
J6: ~system/packages/misc/task.ijs',
J7: ~system/main/task.ijs
It contains utilities such as fork_jtask_, spawn_jtask_, shell_jtask_
You can load the script in both versions using: require 'task'

Disk usage in Perl Core

I’m looking for a way to check the remaining free space on a disk within Perl. I can’t use CPAN since I have to deploy the script on many servers with different versions of Perl, and I can’t change it because my team leader ordered me that way.
Any idea? I tried File::stat but I can’t use it on D:\ (the script runs on Windows versions).
Thanks!
fsutil volume diskfree C:
For Windows servers you can run this cmd command from system() method.

Filtering DbgPrint in WinDBG?

Finally found out how to make DbgPrint to really print in Win Vista/7 with:
ed nt!Kd_DEFAULT_Mask 0xffffffff
The problem is that there is some other drivers talking to the command prompt ni WinDbg. Is there a way to filter so only DbgPrint from my .sys file will reach the command prompt in WinDbg?
I know about DbgPrintEx but I'm not so into migrating my old driver with tons of DbgPrint to DbgPrintEx if there is an easier way for simple filtering...
Have you tried the .ofilter command? This filters at the host so it's not as fast as using DbgPrintEx, but it works in a pinch.
-scott

run .exe in the background

I know that if you want to run a program in the background from a unix command line, you simply add & to the end of the command, but is there an equivalent in windows in order to run something in the background?
A low-budget way of doing this is:
start /min some.exe
This starts the program in a minimised console window, and doesn't wait for the second program to finish.
You can:
Use Windows Scheduler.
Run the exe as a Windows service.
I don't really know of a way to manually start something and have it run in the background like you can do in Unix.
Although not a definitive answer to your question there was a similar question on serverfault here:
https://serverfault.com/questions/121979/tools-to-run-a-background-process-command-line-in-windows
The closest thing in windows to the Linux & is described here from what I can tell:
http://blog.commandlinekungfu.com/2009/04/episode-23-job-control.html