Visit blogadda.com to discover Indian blogs Web Design Blog Directory Web Design Blog Directory The Learning Academy: command prompt




Psychology of Color [Infographic]
Showing posts with label command prompt. Show all posts
Showing posts with label command prompt. Show all posts

Sunday, 28 February 2016

Windows Command Line Tutorial Copying Files



Windows Command Line Tutorial Copying Files

--Steps To Copy Files:

1)Know Which Command To Use :There are many ways to copy files.All the commands can copy files from one location other but there are several cases to use the command over the other.

2)The Commands Are:
  • COPY:This the simple and easy copy function that let you copy files form one location to other.
  • XCOPY : This command allows you to copy files and and directory trees.This makes to easy to copy folders.
  • ROBOCOPY; This command is designed to mirror files and directories while maintaining permissions and attributes.This is the newest copy command so it requires windows vista or later.

3)Copy A File: To copy file use COPY command.In the figure demo.txt file is copied from c:\user to c:\windows.



4)Copy All The Files In A Folder:Use *.* wildcard to copy all files from folder .In the given figure all the files are copied from c:\user to c:\windows.




5)XCOPY To copy a folder to another location:To copy files from location to another type XCOPY command.In the following figure all the contents of c:\users is copied to new folder of d:\backup.



In above figure :
  • /e tells xcopy copy all subdirectories in source location
  • /i tells xcopy to assume that destination is folder.This will force it to create new folder.

6)XCOPY to copy hidden files:To copy hidden files use /h modifier as well as shown below.



7)ROBOCOPY to copy all folders:In order to copy all the entire folders use ROBOCOPY command .In the given figure all the folders of c:\users  are copied to d:\backup.






Windows Command Line Tutorial Creating And Removing Directories

Windows Command Line Tutorial Creating And Removing Directories

--Steps To Create And Remove Directories:

1)Create A New Directory: Type mkdir command followed by directory name to create a new directory.In the given figure the TEST directory is created.


2)Change The Current Working Directory:In order to move to the newly created directory use the change directory command or type CD followed by directory name as shown below:





3)Check The Directory Contents:In order to check the directory contents just type DIR command and list of directory contents will be displayed.

4)Clear the screen:In order  to clear the screen type CLS command and hit enter to clear all the contents of screen as shown below:




5)Create New File:To create new file type NUL> command followed by file name and hit enter.In the following image demo is created.





6)Delete File:In order to delete files type DEL command followed by file name. In the following figure demo file is deleted:




7)Removing/Deleting Empty Directory:To remove directory type RMDIR command followed by directory name.In the given figure the test directory is removed/deleted.




8)Removing Directory That Contains Files:To remove directory that contains files type RMDIR/S
followed by directory name.In the given figure the test directory which contain demo file is removed/deleted.









Windows Command Line Tutorial Useful Commands



Windows Command Line Tutorial Useful Commands

USEFUL COMMANDS :

The command.com or cmd.exe programs have built in commands that are very useful.
below i have discussed some of the important commands and instruction on how to find 
information on the available commands.



1)HELP Command:this command will list all commands built into command prompt.if you want furthur information

for this command you can type help command name.for example help cd will give you

detailed information on a command.
for all commands you can also type the command name followed by a slash(\).to see help on command.for example cd \.


2)EXIT Command:this command will close the command prompt.simply type exit and hit enter
and the command prompt will close.


3)CD Command:this command allows you to change current directory and tells in what directory are you currently in.
to use cd command type cd directory name and press enter.
this would then change the directory you are currently in to one specified


4)DIR Command:this command will list all files and directories contained in your current directory.
to use this command you would just type dir and hit enter this will give you the current files in directory you are including 
all the information ,file size and time and date they were last written to.


5)COPY Command:this command helps you to copy files from one location to another.to use this command you would type copy fileto copied file. for example if you have file in c:\home\test.txt and would like to copy it to c:\windows\test.txt you would type copy c:\home\test.txt c:\windows\test.txt and hit enter.



6)MOVE Command:This command allows you to move files from one location to another.











Saturday, 27 February 2016

Windows Command Line Tutorial Introduction



INTRODUCTION TO WINDOWS COMMAND LINE:

I am going to show you how to use windows command line and all the cool things you can do with it, all the different tools and tips.

So, the very first thing is how to open command line??Here it is:

--Steps To Open Command Line:

1)click start as shown in following figure:


2)Type CMD and hit enter:
:


3)The following window will get opened:





Now that you have opened cmd let's talk about why would we ever want to use it.We all have almost graphic interface then why we would bother to with it?well,actually the command line is faster than GUI and when i say GUI it means graphical user interface.And also there are certain tools and softwares which are available to only command line.


So what is command prompt is actually a window that by default displays the current directory or in windows in terms of folder that you are in and a blinking cursor ready for you to type commands.
for example in the above image it says c:\> which is prompt that tells me that i am currently in the c:\ directory.If i was in the c:\windows> directory it would look like this: c:\windows>


To use command prompt you would type in the commands and instructions you want and hit enter.
In the next post i will be discussing some useful commands .