New
#11
that was close it copied the directory structure but it didn't copy any of the files inside the folders
that was close it copied the directory structure but it didn't copy any of the files inside the folders
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.
Rich
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
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.
thanks so much, this works perfectly