Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to copy folders using wildcards

17 Sep 2013   #11

windows 7 ultimate 64 bit

that was close it copied the directory structure but it didn't copy any of the files inside the folders

My System SpecsSystem Spec
17 Sep 2013   #12

Windows 7 Pro x64 SP1

dsikirica try

xcopy p:\client\12*.* z:\clientbak\ /e /i /s

The /m works only once until you reset the archive bit. Happens all the time when it fails the first
time. The archive bit gets set and the /m tells it that it already has been archived.

My System SpecsSystem Spec
17 Sep 2013   #13

windows 7 ultimate 64 bit

it copied all of the folders in the whole client directory, not just the ones that start with 12, it only copied 2 files under those folders, and they weren't the files in the 12*.* folders., is there anything you can think of that i need to do on my end different these are mapped drives and if it matters the folders are on two different servers, clients is on server x and clientbak is on server y
My System SpecsSystem Spec

17 Sep 2013   #14

W10 Pro desktop, W10 laptop, W10 laptop, W10 Pro tablet (all 64-bit)

This is the closest I could get, try this in a batch file:

for /d %%a in (\client\12*) do xcopy "%%a" "z:\clientbak\%%a" /E /I

Use %a instead of %%a to run it from the command line.

This copies only the 12 folders & files BUT it copies them to clientbak\client. I wasn't able to get around that.
My System SpecsSystem Spec
17 Sep 2013   #15

windows 7 ultimate 64 bit

thanks so much, this works perfectly
My System SpecsSystem Spec

 How to copy folders using wildcards

Thread Tools

Similar help and support threads
Thread Forum
Can't move folders but can copy and delete them
I'm running windows 7 Ultimate (up-to-date) and certain folders (mostly folders in my box sync map and program files) are treated as if they are in use by a program but process explorer tell's me that only system and explorer.exe use them. I don't know if system should be using folders or if...
General Discussion
Copy a group of folders but only 1 subfolder
I have a large group of 3000 folders and in them, there are the seletion of subfolders as shown below. Property 1 -Gas -Electric -Asbestos Property 2 -Gas -Electric
General Discussion
Which folders should I copy to backup my laptop?
Hi All - I'm setting up a simple backup using Second Copy (SC). I can set the SC software to automatically "sync" specified subdirs on my laptop's hard drive to a 1.5 TB NAS (Drobo FS). My question is which folders do I want to keep safely copied. I know I want to safeguard "My Documents"...
Backup and Restore
Copy Emails from Imported Folders
I exported my Vista Windows Mail folders and messages and imported them into WLM's Imported folders as Shawn's How To... post instructs. How do I copy them to WLM's regular folders For Email? Thanks, cb
Browsers & Mail
Copy folders including timestamp
Hi everyone, I'm in search for a tool to copy several folders to another computer including the given timestamp. I would appreciate a solution just like "Context Menu - Copy Folders including Timestamp" to make copy-process easier. :sarc:Is there anything on the market?
General Discussion
Copy from DVD-R is slow with multiple folders? I'm seeing some very poor performance and strange issues here. I have a DVD-R with 3 folders with each folder having about 50 pictures (each picture is about 20mb). If I open the disc and try to copy all three folder onto my HDD, you can hear the drive head seeking like crazy and I get...
General Discussion

Our Sites

Site Links

About Us

Find Us

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 13:21.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App

Windows 7 Forums