Link to home
Create AccountLog in
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.
Avatar of Lukasz Chmielewski
Lukasz Chmielewski
Flag of Poland image

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

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of SlickTech
SlickTech

ASKER

wow, you can list multiple files in the list?  I'll try it now
wow, that was amazing thanks guys