Copy folders using Command prompt

October 9 2009No Commented

Categorized Under: Tips n Trix

Command prompt copy utility may come to rescue in case where your explorer or windows has been crashed. Copying file from one location to other is simple.Go to Source drive,give copy command followed by destination drive.
e.g. C:\My Documents>copy c:\image.jpg d:\

To copy a folder with subfolders and files you may have to use an extended copy utility provided XCOPY.

Synatx for copy is :

xcopy “Sourcedrive\*.*” Destination drive /e /i /h

e.g. : > Xcopy “C:\Pics\*.*” D:\VJ\ /e/i/h

Here command Copies files and directory trees from C:\Pics to D:\VJ (will create VJ dir if it doe not exist)

More about Extended copy utility

XCOPY source [destination] [Parameters]
source       Specifies the file(s) to copy.
destination  Specifies the location and/or name of new files.
/E           Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.
/I           If destination does not exist and copying more than one file,
assumes that destination must be a directory.
/H           Copies hidden and system files also.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Leave a Reply