XCOPY wild cards (*.pst) RRS feed

  • Question

  • Hello All,

    I want to copy any available *.pst file(s) to a backup drive / pen drive.  I've issued the following command, but after some time it says 0 file(s) copied.

    xcopy C:\*.pst E:\backup /s/v/c

    I just want to copy any pst file present in system as per folder structure! Any inputs received would be greatly appreciated.

    • Moved by Bill_Stewart Tuesday, December 5, 2017 3:23 PM This is not "scripts on demand"
    Wednesday, November 1, 2017 10:45 AM

All replies

  • You could try it with robocopy … that might work better ...
    robocopy c:\ E:\backup\ *.pst /S /XJ /R:0 /W:0 /XX /NDL /Z /J

    Best regards (79,108,97,102|%{[char]$_})-join''

    Wednesday, November 1, 2017 12:48 PM
  • Files in user folders are hidden from the command.  YUO will need to add admin account to user folders and run an elevated prompt with almost any utility.


    Wednesday, November 1, 2017 3:39 PM