Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i copy folder

Utility Program

How can i copy folder

by  moshi  Posted    (Edited  )
Simply write the following code :
! /n xcopy Source [Destination]

Suppose I want to copy the d:\temp directory into d:\rafiq
Then write the following code:

! /2 xcopy d:\temp d:\rafiq\temp /i /y /e

here the parameters mean:
/2 : dos window active and minimized
/i : if the soursce directory does not exist in destination directory it creates.
/y : overwrites existing files or folders
/e : copying directories and subdirectories including empty ones

it works nicely.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top