Skip to main content

Posts

Showing posts from October, 2009

An A-Z Index of Windows Scripting Host commands (WSH/VB Script)

Arguments, display - WshArguments.Item (also Count and length) Command, cscript - Run a VBS/WSH Script Command, .Run command Command, .Exec execute command Command, .AppActivate activate running command Drive Map - .MapNetworkDrive Drive Map, list - .EnumNetworkDrives Drive Map, remove - .RemoveNetworkDrive Echo text .Echo Echo text to StdOut.Write Echo, popup .Popup Environment, read env variables - .Environment Environment, expand env variables - .ExpandEnvironmentStrings Environment, delete env variables - .WshEnvironment.Remove Environment, echo .ComputerName Environment, echo .UserName Environment, echo .UserDomain Log an item in the Event log .LogEvent Object, create - .CreateObject Object, get - .GetObject Object, disconnect- .DisconnectObject Path of wscript.exe - .Name Path to current directory - .CurrentDirectory Pathname of wscript.exe - .FullName Pathname of script being run - .ScriptFullName Path to desktop,start menu.. - .Sp

Windows XP Command Line Syntax

Parameters Command Line Parameters %1 %~f1 Variables Create/read environment variables Redirection Spooling output to a file, piping input AND/OR Logic Conditional Execution (If-Then-Else) Loops Loops and Subroutines functions How to package blocks of code Services List of Windows XP Services Evaluating expressions Using brackets to Group and expand expressions Delayed Expansion Manage and text SET /A Environment variable arithmetic VarSubstring Extract part of a variable (substring) VarSearch Search & replace part of a variable Escape chars, delimiters and quotes Wildcards Match multiple files Batch Files DateMath Add or subtract days from any date GetDate.cmd Get todays date (any region, any OS) GetTime.cmd Get the time now GetGMT.cmd Time adjusted to Greenwich Mean Time datetime.vbs Get Date, Time and daylight savings deQuote Rem

An A-Z Index of the Windows XP command line

Hope this is so useful ADDUSERS Add or list users to/from a CSV file ARP Address Resolution Protocol ASSOC Change file extension associations• ASSOCIAT One step file association ATTRIB Change file attributes b BOOTCFG Edit Windows boot settings BROWSTAT Get domain, browser and PDC info c CACLS Change file permissions CALL Call one batch program from another• CD Change Directory - move to a specific Folder• CHANGE Change Terminal Server Session properties CHKDSK Check Disk - check and repair disk problems CHKNTFS Check the NTFS file system CHOICE Accept keyboard input to a batch file CIPHER Encrypt or Decrypt files/folders CleanMgr Automated cleanup of Temp files, recycle bin CLEARMEM Clear memory leaks CLIP Copy STDIN to the Windows clipboard. CLS Clear the screen• CLUSTER Windows Clustering CMD Start a new CMD shell COLOR Change colors of the CMD window• COMP Compare the contents of tw