I am trying to create a batch file that searches for .pst files and then moves it those files to a specific location. So far this is what I have. Please help.
cd \
setlocal enabledelayedexpansion
for /r %%i in (*.pst) do (
::echo %%~i
set MyPath=%i%
move "%MyPath%" "C:\users\zack.vigrass\desktop\"
)
endlocal
PAUSE
edit: I didn't realize I wasn't asking a question. I was mostly asking Why does it returned a blank file instead of the intended .pst file.