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 wildcards (*) be used for Blocked Senders add list?
When adding Blocked Senders names to Outlook 2007 can I type: * or is it sufficient just to enter and any email ending in that will be trapped. Sometimes there are various junk mail that have a different and long string following the @ sign but a common ending such as the...
Browsers & Mail
Cannot copy folders to camera but can copy individual files
Hi there! I'm unable to copy/move folders from my PC to my camera. But I'm able to copy individual photos and files. Can anyone help me out here?
Hardware & Devices
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 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 22:14.
Twitter Facebook Google+