Advertisement
Guest User

BrowserHistoryView-script

a guest
Jun 3rd, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. @echo off
  2.  
  3. set D1=%date:~4,2%-%date:~7,2%-%date:~10,4%
  4.  
  5. :mainbhvmenu
  6. cls
  7. COLOR 07
  8. echo.
  9. echo.
  10. echo Is %remotetarget% running XP or WIN7 ? :
  11. echo.
  12. echo 1 - XP
  13. echo 2 - WIN7
  14.  
  15. echo.
  16. echo.
  17.  
  18. :mainbhvchoice
  19. set /P C1=[1,2]?
  20. if "%C1%"=="1" goto BHVXP
  21. if "%C1%"=="2" goto BHVWIN7
  22. echo.
  23. echo "%C1%" is not a valid choice, please try again
  24. goto mainbhvmenu
  25.  
  26.  
  27. :BHVXP
  28. echo.
  29. echo.
  30. echo Please be patient... if the Browser history is significant, this could take a few moments...
  31. echo.
  32. echo.
  33. md "\\SERVER\RESULTS\%remotetarget%\"
  34. "\\SERVER\TOOLS\BrowsingHistoryView\1.51\Files\32bit\BrowsingHistoryView.exe" /HistorySource 3 /HistorySourceFolder "\\%remotetarget%\c$\Documents and Settings" /VisitTimeFilterType 1 /LoadIE 1 /LoadFIrefox 1 /LoadChrome 1 /LoadSafari 1 /scomma "\\SERVER\RESULTS\%remotetarget%\%remotetarget%-%D1%.csv"
  35. echo.
  36. echo.
  37. echo ....
  38. echo Browser History export is complete.
  39. echo ...
  40. echo ..
  41. echo . (closing in 5 seconds...)
  42. echo.
  43. :: command to silent/delay for 5 seconds before batch file closes
  44. ping -n 5 127.0.0.1 > nul
  45.  
  46. goto quit
  47. echo.
  48. goto quit
  49.  
  50. :BHVWIN7
  51. echo.
  52. echo.
  53. echo Please be patient... if the Browser history is significant, this could take a few moments...
  54. echo.
  55. echo.
  56. md "\\SERVER\RESULTS\%remotetarget%\"
  57. "\\SERVER\TOOLS\BrowsingHistoryView\1.51\FILES\32bit\BrowsingHistoryView.exe" /HistorySource 3 /HistorySourceFolder "\\%remotetarget%\c$\Users\" /VisitTimeFilterType 1 /LoadIE 1 /LoadFIrefox 1 /LoadChrome 1 /LoadSafari 1 /scomma "\\SERVER\RESULTS\%remotetarget%\%remotetarget%-%D1%.csv"
  58. echo.
  59. echo.
  60. echo ....
  61. echo Browser History export is complete.
  62. echo ...
  63. echo ..
  64. echo . (closing in 5 seconds...)
  65. echo.
  66. :: command to silent/delay for 5 seconds before batch file closes
  67. ping -n 5 127.0.0.1 > nul
  68. goto quit
  69.  
  70.  
  71. :QUIT
  72. EXIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement