oseinternet.blogg.se

Nircmd
Nircmd









nircmd

> Set the volume to the highest value nircmd. > Decrease the system volume by 5000 units (out of 65535) nircmd. > Increase the system volume by 2000 units (out of 65535) nircmd. speak file "c:\temp\speak.txt" 0 100 "c:\temp\speak.wav" 48kHz16BitStereo > Speaks the text stored inside speak.txt into speak.wav filename ( For Windows XP/Vista/7/8). > Speaks the text currently in the clipboard ( For Windows XP/Vista/7/8). > Close the door of Y: CD-ROM drive nircmd. > Open the door of J: CD-ROM drive nircmd. > Here is a tiny sample of what it can do for you with just 1, yes ONE line of code: > It also comes with a very comprehensive help file and heaps of examples and you will find more examples simply by searching Google.

nircmd

> There are literally hundreds of things you can do with this that would take reams of code to accomplish, and it does it all in one line of code. I created a form, added a button and in the click of the button: > By the way did I mention that it can easily be used in VFP? Add a shortcut hot key for this shortcut and I am in business. > No explanation needed and the 1000 is miliseconds. > For instance to simply turn my monitor off, I created a shortcut and added this command: > Just 2 simple tiny files is all it takes, copied into the windows or SYSTEM folder so that it can be found by windows PATH and used from anywhere. > Basically it allows you to do a heap of things that would normally take many lines of code and many hours of searching especially to access the inner workings of windows. While searching for a way to switch off my monitor using the keyboard, I came across this super little utility.











Nircmd