SHARE
TWEET

Untitled

a guest Aug 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2.  
  3. echo Selecione o tipo de backup:
  4. set /p TipoBackup=1-Backup Local, 2-Backup de rede:
  5.  
  6. If %TipoBackup%==1 GOTO BackupLocal
  7. If %TipoBackup%==2 GOTO BackupRede
  8.  
  9. :BackupLocal
  10. copy BackupDelivery.bat C:\Deliverygdb\BackupDelivery.bat
  11. set /p NomeTarefa=Preencha o nome da tarefa a ser criada:
  12. set /p HoraTarefa=Preencher com o horario do backup, (O horario deve ser preenchido no formato de 24h, ex: 8:00, 16:00, 14:30):
  13. schtasks /create /SC DAILY /TN %NomeTarefa% /TR C:\Deliverygdb\BackupDelivery.bat /ST %HoraTarefa%
  14. pause
  15. exit
  16.  
  17. :BackupRede
  18. copy BackupDeliveryRede.bat C:\Deliverygdb\BackupDelivery.bat
  19. set /p NomeTarefa=Preencha o nome da tarefa a ser criada:
  20. set /p HoraTarefa=Preencher com o horario do backup, (O horario deve ser preenchido no formato de 24h, ex: 8:00, 16:00, 14:30):
  21. schtasks /create /SC DAILY /TN %NomeTarefa% /TR C:\Deliverygdb\BackupDelivery.bat /ST %HoraTarefa%
  22. pause
  23. exit
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top