Advertisement
TdoS

Untitled

Oct 5th, 2020
1,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. for /f "delims=" %%a in ('wmic OS Get localdatetime  ^| find "."') do set dt=%%a
  3. set datestamp=%dt:~0,8%
  4. set timestamp=%dt:~8,6%
  5. set YYYY=%dt:~0,4%
  6. set MM=%dt:~4,2%
  7. set DD=%dt:~6,2%
  8. set HH=%dt:~8,2%
  9. set Min=%dt:~10,2%
  10. set Sec=%dt:~12,2%
  11.  
  12. set stamp=%YYYY%-%MM%-%DD%
  13.  
  14. xcopy C:\Users\X\AppData\Roaming\Mozilla\Firefox\Profiles\q1kkhlmm.default\places.sqlite "G:\Documents\Firefox Browser History Backup\%stamp%_firefox_history.sqlite*"
  15.  
  16. forfiles /p "G:\Documents\Firefox Browser History Backup" /s /m *.* /D -90 /C "cmd /c del @path"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement