Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

26.12.11

Performance Object


The Windows Server 2003 family of operating systems obtains performance data from components in your computer as those components are utilized. That data is described as a performance object and is typically named for the component generating the data. For example, the Processor object is a collection of performance data about processors on your system.

Performance objects are built into the operating system, typically corresponding to the major hardware components such as memory, processors, and so on. Other programs might install their own performance objects. For example, services such as Windows Internet Name Service (WINS) or server programs such as Microsoft Exchange provide performance objects, and performance graphs and logs can monitor these objects.

Each performance object provides performance counters that represent data on specific aspects of a system or service. For example, the Pages/sec counter provided by the Memory object tracks the rate of memory paging.

10.11.10

How to Create Command Prompt for Folders

HKEY_CLASSES_ROOT\Folder\shell\cmd\command

How to Create a Right Click Menu in Windows 7 for GVim or Other Green Program?

Very simple.

  • regedit
  • HKEY_CLASSES_ROOT/*/shell
  • Create a key with any name you like, e.g. “Edit with GVim”. After that, please test it with you Explorer by right click on any files. You will see a new menu item there.
  • Create a new key as “command” underneath. You must use “command” as the key.
  • Set the string value of command key: <command path> “%1”
    • e.g.: C:\Tools\vim73\gvim “%1”

That’s it.

29.7.10

Open a Windows Folder on Windows Using Java

try {
String[] cmd = new String[5];

String url = "D:\\Program Files\\download";
cmd[0] = "cmd";
cmd[1] = "/c";
cmd[2] = "start";
cmd[3] = " ";
cmd[4] = url;

Runtime.getRuntime().exec(cmd);
} catch (IOException e) {
e.printStackTrace();
}