Showing posts with label cmd. Show all posts
Showing posts with label cmd. Show all posts

Sunday, 27 September 2009

How to create a folder with a MS-DOS command

To create a folder/directory using a DOS command, do the following :

Open up a command window i.e. Winkey + R and type cmd into the field and press Enter.
Type : md c:\Testfolder and press Enter

That's it, you will now have a folder called 'Testfolder' on your C drive !

How to find the size of your hard drive using a DOS command

There are other easier ways of finding the size of your hard drive but this tutorial will show you how to do it using only DOS command.

1. Open the 'run' window by going to the start menu>run (or Winkey + R).
2. Type 'cmd' and press enter and the black DOS window will open
3. Type the following to see the details for C: drive.

'fsutil volume diskfree C:'

4. You will be shown something similar to the following :

Total # of free bytes : 748716032
Total # of bytes : 69265047552
Total # of avail free bytes : 748716032

5. These numbers may be abit confusing so it is best to convert them to Gigabytes or Megabytes using a converter off the net. Here is a link to the converter i used which produced the following results :

Total # of free Mb : 714.03125
Total # of Gb : 64.5081
Total # of avail free Mb : 714.03125

How to start and stop a service using command line

This method of starting and stopping a service applies to all Windows based operating systems e.g. Windows 2000, XP, Vista and Windows Server 2000/2003.

The first thing you will have to know is the name of the service you want to stop or start. You can find this by going to the services list :

1.Winkey + r
2. Type 'services.msc'
3. Locate the service you wish to start/stop and righ click>properties
4. The Service name is shown at the top on the general tab.

For my example i am going to use Internet Information Server (IIS) as the service i wish to stop. It's service name is 'w3svc'. So once you have the name then perform the following :

1. Winkey + r (or start menu and then click 'Run')
2. Type 'cmd' and press enter to bring up a command prompt.
3. Type Net Start or Net Stop (depending on what action you wish to perform) and then the service name e.g. 'Net stop w3svc'. Press enter.
4. In the above instance the command prompt window would show the messages "The World Wide Web Publishing service is stopping." and "The World Wide Web Publishing service was stopped successfully".

So, to start the service back up i would just use the Net start command.

Saturday, 26 September 2009