Browsing "Scripting"
Mar 31, 2005 - General, Scripting, Windows XP    No Comments

How can I use a script to determine the number of processors in a machine?

You can use a Windows Management Instrumentation (WMI) script to easily ascertain the number of processors on a machine. To do so, use these VBScript commands in a script file:

Set oShell = WScript.CreateObject(“WScript.Shell”)
Set oEnv = oShell.Environment(“SYSTEM”)

Freeware Caffeine prevents your PC from locking or going to sleep

Run this to prevent your PC screen from locking. It does this by simulating
that you’ve pressed the shift key once every 59 seconds.

Double-click the icon to temporarily disable Caffeine, and permit your screen
to lock.

Under Win98: a key down and then a key up event is simulated
Under Win2000/XP: a key up event is simulated

Download here

Jun 20, 2004 - Scripting    1 Comment

Shortcut For Logging Off

Paste the below in to a text file and save as logoff.vbs

set WshShell = CreateObject(“WScript.Shell”)
WshShell.SendKeys “^{ESC}ul{ENTER}”

Related Posts Plugin for WordPress, Blogger...