Draft for Information Only
Content
MS Copying Directory Structure Xcopy Robocopy
MS Copying Directory Structure
Copying directory structure without files from command-line
Xcopy
Xcopy is the extended copy command.
XcopyThe syntax used to clone a directory without files by the command 'xcopy'
xcopy /t /e "c:\source folder" "e:\new foleder"
switches:
/t:copy the subdirectory structure, but not the files
/e:copy subdirectories, including any empty ones
Robocopy
Robocopy is the robust file copy command.
robocopyThe syntax used to clone a directory without files by the command 'robocopy'
robocopy "c:\source folder" "e:\new foleder" /e /xf *
The syntax used to clone a directory without files without displaying the status by the command 'robocopy'
robocopy "c:\source folder" "e:\new foleder" /e /xf * >null
The syntax used to clone a directory without files and create a log (overwrite existing log) by the command 'robocopy'
robocopy "c:\source folder" "e:\new foleder" /e /xf * /og:thelogfile.log
The syntax used to clone the top level sub-folders (sub-folders in the source directory) by the command 'robocopy'
robocopy "c:\source folder" "e:\new foleder" /e /LEV:2 /xf *
switches:
/e:copy the subdirectory structure, including empty ones
/xf:exclude files matching the specified names or paths. Wildcards "*" and "?" are accepted.
/LEV: n:copy only the n LEVels of the source. For n=2, only the top level sub-folders will be copied.
©sideway
ID: 190500013 Last Updated: 5/13/2019 Revision: 0
Latest Updated Links - Windows 10 Run Command BCDEdit.exe /eventsettings, /event(last updated On 4/15/2021)
- Windows 10 Run Command BCDEdit.exe /bootdebug, /dbgsettings, /debug(last updated On 4/14/2021)
- Windows 10 Run Command BCDEdit.exe /bootems, /ems, /emssetting(last updated On 4/13/2021)
- Windows 10 Run Command BCDEdit.exe /bootsequence, /default, /displayorder, /timeout, /tooldisplayorder(last updated On 4/12/2021)
- Windows 10 Run Command BCDEdit.exe /enum, /v(last updated On 4/11/2021)
- Windows 10 Run Command BCDEdit.exe TOPICS, FORMATS, ID, TYPES(last updated On 4/10/2021)
- Windows 10 Run Command BCDEdit.exe TOPICS, FORMATS, ID, TYPES(last updated On 4/9/2021)
- Windows 10 Run Command BCDEdit.exe /deletevalue, /set(last updated On 4/8/2021)
- Windows 10 Run Command BCDEdit.exe /copy, /create, /delete, /mirror(last updated On 4/7/2021)
- Windows 10 Run Command BCDEdit.exe /store, /createstore, /export, /import, /sysstore(last updated On 4/6/2021)
- Windows 10 Run Command BCDEdit.exe(last updated On 4/5/2021)
Nu Html Checker 53 na na
|
 |