Sistemas‎ > ‎Windows‎ > ‎Scripts windows‎ > ‎Dropbox‎ > ‎

fazBackupParaDropbox.bat

echo "Copia arquivos recentes (3 dias)"
robocopy c:\temp\origem "C:\Users\%username%\Dropbox\destino" /maxage:3
echo "Move arquivos antigos (mais de 3 dias)"
robocopy "C:\Users\%username%\Dropbox\destino" c:\temp\apagar /mov /minage:3
echo "Apaga arquivos antigos"
rmdir c:\temp\apagar /s /q
Comments