Sunday, March 6, 2011

Basic Commands of Command Prompt


Basic Commands of Command Prompt

1.Commands: 
DIR-directory
MKDIR - make directory(create a new folder)
RMDIR - remove the directory
CD - changed directory
COPY - copy files 

open cmd by typing "cmd.exe" in run,after cmd open it look likethis       
C:\User\Home>    then type following commands

CD (changed directory): 
                                          
C:User\Home>Cd    (press enter then)
C:User\Home> (then type your locations eg: for "D" Drive type D:)
C:User\Home>D: (Then Press Enter) 
Now your path is changed to D: and look like
D:\> 

DIR - now time to use dir command type dir
D:\>dir
then it will show the directory present in the drive
Directory of D:\
01/11/2010  05.05 pm <Dir>             Geekcools
02/12/2010  05.06 pm <Dir>            HelloWorld

Geekcools and helloworld are folder present inside the "D" drive

MKDIR - now time to create directory
D:\>MKDIR "then type your directory name here
D:\>MKDIR   Hai   "then press enter"
now Hai folder will be created in "D" drive  

RMDIR -
D:\>RMDIR "then type the directory name which you want to remove"
D:\>RMDIR  Hai  "then press enter"
now hai folder is removed from "D" Drive

Copy - 
D:\>Copy [file or folder name] [paste on current directory]
after typing copy command you must type the following file or folder to copy for example
in my drive i have a file named img.png and folder geekcools,we should type folder or file name and leave a space then type specified directory to paste a file on it.
D:\>Copy     img.png     geekcools  
        copied 1 file
now i goto geekcools folder i will find img.png      


If you are using command prompt you are advanced user with windows 

No comments:

Post a Comment