Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
- set datestamp=%dt:~0,8%
- set timestamp=%dt:~8,6%
- set YYYY=%dt:~0,4%
- set MM=%dt:~4,2%
- set DD=%dt:~6,2%
- set HH=%dt:~8,2%
- set Min=%dt:~10,2%
- set Sec=%dt:~12,2%
- set stamp=%YYYY%-%MM%-%DD%
- xcopy C:\Users\X\AppData\Roaming\Mozilla\Firefox\Profiles\q1kkhlmm.default\places.sqlite "G:\Documents\Firefox Browser History Backup\%stamp%_firefox_history.sqlite*"
- 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