Avatar of SlickTech
SlickTech
 asked on

how to xcopy or robocopy some files and keep original directory structure in tact

I I'm looking to write a batch file to backup needed files on a computer like pst, wab, dbx and the like files from arbitrary locations to an external drive, problem is, since there could be multiple outlook.pst files (diffrent profiles), I would like to keep the original directory structure, but only copy the needed files.

I looked through the needed switches using xcopy and robocpy but couldn't figure it out.  The only reason I think it can be done is that using one of these apps, I did it by mistake once.

Thanks for all your help.
Microsoft ApplicationsMicrosoft Legacy OS

Avatar of undefined
Last Comment
SlickTech

8/22/2022 - Mon
Lukasz Chmielewski

why doesn't the xcopy /S /E work for you ?
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SlickTech

ASKER
wow, you can list multiple files in the list?  I'll try it now
SlickTech

ASKER
wow, that was amazing thanks guys
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck