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!

Copy files from sub-directories belonging to different parent folders 1

Status
Not open for further replies.
Mar 6, 2003
157
JO
Here is my situation:

I have the following standard directory structure in Windows 2003 Server-

ParentFolder1\SubDirectory1\cubes
ParentFolder1\SubDirectory1\reports
ParentFolder1\SubDirectory1\models
ParentFolder2\SubDirectory2\cubes
ParentFolder2\SubDirectory2\reports
ParentFolder2\SubDirectory2\models
ParentFolder3\SubDirectory3\cubes
ParentFolder3\SubDirectory3\reports
ParentFolder3\SubDirectory3\models

I have files with the same extension within the cubes sub-directories. Without having to open several instances of Windows Explorer, is there any quick way to be able to get at the files within just the cubes sub-directories to be able to copy them over in one shot to another PC with the exact same directory structure?

I hope I'm being clear.

Regards,
Shawn
 
Hmm...

How about a cmd file? Copy and paste the 3 XCOPY lines below to a notepad file.

xcopy /s ParentFolder1\Subdirectory1\cubes\*.ext \\pc2\c$\ParentFolder1\Subdirectory1\cubes\*.ext
xcopy /s ParentFolder2\Subdirectory2\cubes\*.ext \\pc2\c$\ParentFolder2\Subdirectory2\cubes\*.ext
xcopy /s ParentFolder3\Subdirectory3\cubes\*.ext \\pc2\c$\ParentFolder3\Subdirectory3\cubes\*.ext

Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top