Below is the list of commands that can be run from windows command prompt (CMD).  You can follow the link given for a command to see the syntax and examples. At: Schedule tasks Attrib: Set file attributes Bootcfg: Enable kernel debugging copy: Copy files Cls: Clear command window screen Compact: Compress or decompress files and [...]

{ 3 comments }

How to start/stop webclient service

by admin on May 10, 2012

We can start webclient service from command prompt using the below command net start webclient C:\>net start webclient The WebClient service is starting. The WebClient service was started successfully. C:\> Note that this command should be run from a login account with administrator privileges. Additionally, on Vista and Windows 7, this should be run from [...]

{ 0 comments }

Create event from command line

by admin on April 23, 2012

If you want to log an event in any of the event log files, then you can do that using eventcreate command.  Logging an event helps the system administrators to trace out things if something has not worked in an expected way. Using this command, we can create a custom event with custom id and [...]

{ 0 comments }

Sleep command in Windows 7

by admin on April 18, 2012

Windows 7  provides a new command sleep which can be used in batch files or command prompt to pause the execution and wait for some time. In previous Windows editions(XP and Server 2003), this command is not available. Users of these Windows editions can download Windows resource kit tools for obtaining sleep command. Syntax of [...]

{ 0 comments }

How to change drive label

by admin on April 17, 2012

The labels of disk drives(volumes) can be changed from windows command line using label command.  In the command, we need to specify the drive letter for which we need to change the label. Note that drive letter and drive label are different. In the below snapshot, drive letter is C: and drivel label is ‘Windows [...]

{ 0 comments }

Windows 7 Run commands

by admin on April 16, 2012

In this article, we show the run commands available in Windows 7.  Some of the commands available in XP no longer work in Win7. Also, some new commands have been added. Windows 7 Run commands: appwiz.cpl : Programs and Features(View/uninstall installed updates/software) bthprops.cpl : Blue tooth devices calc – calculator certmgr.msc : Security certificates manager [...]

{ 0 comments }

Format Drive command

by admin on April 15, 2012

In Windows, we can format a disk drive from command line also. We can use the inbuilt command ‘format’ for this. What ever we can do in the disk management tool, we can do the same using format command.  This article explains the different options available for this command. Format a disk drive format driveletter [...]

{ 0 comments }

If you want to add command window tile to the start screen, here is how you can do this. Open the folder c:\windows\system32 in explorer. Locate the file cmd.exe Right click and select ‘Pin to Start‘ That’s all. Now click Windows key, you can see a new tile added at the last. You can drag [...]

{ 0 comments }

Get file creation date and time

by admin on April 14, 2012

We can find creation date of a file from command line using dir command.  The syntax for this is given below. dir /T:C filename If we need to get file creation date and time for all the files and subdirectories in the current directory, the command is: dir /T:C We can also restrict the output [...]

{ 0 comments }

Get file modified date & time

by admin on April 4, 2012

We can get file last modified date/time from Windows command line using dir or forfiles commands. Using Dir command: dir /T:W  filename For example, to get the last modified time for the file ‘E:\commands.docx’ the command would be: dir /T:W  e:\commands.docx To get the modified date and time for all files and sub folders in [...]

{ 0 comments }

Powercfg command : Manage power settings in command line

April 4, 2012

Powercfg command on Windows allows users to configure power settings on laptops/desktops.  Using this command we can configure settings related to idle timers, low battery alarms, hibernate/sleep timers etc. Get the current active scheme details: powercfg  -getActiveScheme Example: c:\>powercfg -getActiveScheme Power Scheme GUID: 4ac93938-c0ab-4b33-9150-b71bf11e59d3 (Maximum Battery Life) c:\> List the power schemes available on the [...]

Read the full article →