Advertisement
xotriks

backup

May 2nd, 2020
969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.35 KB | None | 0 0
  1. echo off
  2. color 06
  3.  
  4. set param1NoQuotes=%1
  5. set param1NoQuotes=%param1NoQuotes:"%1
  6.  
  7. set yyyy=%date:~6,4%
  8. set mm=%date:~3,2%
  9. set d=%date:~0,2%
  10.  
  11. set hh=%time:~0,2%
  12. if "%hh:~0,1%" == " " @set hh=%hh:~1,1%
  13.  
  14. set min=%time:~3,2%
  15. set timeStamp=%hh%.%min%_%d%-%mm%-%yyyy%
  16.  
  17. "D:\7-Zip\7z.exe" -tzip a "E:\_Backup\kopia_%timeStamp%%param1NoQuotes%.7z"%1
  18. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement