kooshmoose
A boy and his blog
Thursday, October 11, 2007
Copying Directory Structure But Not Files
Just filing this under the interesting tidbits that I know I should remember how to do, but always forget how easy it is...
From a Windows command prompt type:
xcopy /T /E "c:\directory to copy" "c:\location to copy to"
If you don't want empty subdirectories, then omit the /E.
If you want to copy all files, the substitute /S for /T and the same rules apply for the /E.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)