Im looking to modify code to copy a file from 1 drive location and copy it over to another location zipped. The files collectively exceed 600 gig and i only have half of that available. Ultimately I want to copy to the new location and delete all the original files. If you can think of a better option im also open to suggestion.
Thanks in advance!
for /F "tokens=*" %%F in ('dir /s/b/a:-d %src%\*.pst') do (
for %%D in ("!folder!") do set folder=%%~nxD
copy "%%~F" "%dst%\%%~nF.!folder!%%~xF