|23 Nov 2012||#1|
Robocopy? Copy Directory Structure 1 level
I want copy a list of folders (a few hundred) to a new location. I tried using robocopy but can only get it to either copy the selected folder or all folders with subfolders. What I want is to only copy one level of folders and not the subfolders within.
C: Drive (the source)
->ClientsSo I would want to copy over just the first level of folders (the list of clients), but none of the subfolders within each client folder.->Client 1
any help would be great.
|My System Specs|
|23 Nov 2012||#2|
Try using the /LEV:n switch in your robocopy command.
From robocopy /? at command prompt
:: :: Copy options : :: /S :: copy Subdirectories, but not empty ones. /E :: copy subdirectories, including Empty ones. /LEV:n :: only copy the top n LEVels of the source directory tree.
robocopy C:\Clients G:\Backup\Clients /LEV:2
|My System Specs|
|Similar help and support threads for2: Robocopy? Copy Directory Structure 1 level|
|Robocopy /MOV command copying but not deleting from source directory||General Discussion|
|Need to return to the default Windows 7 directory structure||General Discussion|
|Robocopy - Access denied Error 5 Real Directory||Backup and Restore|
|Media players and directory structure||Music, Pictures & Video|
|How to extract files _with_ keeping directory structure?||Software|
|Update (copy) file to multiple places in directory structure||General Discussion|
|Strange File Structure on Top level of OS Drive.||Software|
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
All times are GMT -5. The time now is 08:51 AM.