Command Prompt - Commands



--]]Commands for Directories


  • CD - Change the current drive or director
Example :-

1.) We are moving from directory Nish to directory User by typing " cd.. " in command line.










         2.) Next we are moving from drive C to drive D








  • DIR - It lists the current directory
Example:-






  • DIR /b - It lists the directory bare
Example:-






  • DIR /w - It lists the directory wide
Example:-







  • CHDIR - Change the current directory (CD)
Example:-









  • MKDIR - Make a new sub-directory
Example:-






  • RMDIR - Remove an existing directory
Example:-






  • XCOPY - It  is used for copying data from one place to another 
Example:-

 1) First change the directory from where you want to copy the file.





2)Syntax for XCOPY






3)This is the directory containing our file 







4)Now, sometimes, when you are copying data into some specific folder like in "c:\nish\destination", then, it will give you two options


 --]] Do you want to create a special directory inside that folder and put the files (to be copied)into that directory.If yes, type "d" for directory.


 --]] Do you simply want to copy files directly into that folder.If yes, type "f" for files.



5)Copying process completed






6)Screenshot of the destination folder 


















0 comments:

Post a Comment