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.
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.
why doesn't the xcopy /S /E work for you ?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
wow, you can list multiple files in the list? I'll try it now
ASKER
wow, that was amazing thanks guys