Created
November 23, 2011 14:57
-
-
Save xee5ch/1388881 to your computer and use it in GitHub Desktop.
Thunderbird Debug Log Run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
:========================================================================== | |
: | |
: | |
: Filename: THUNDERBIRD-DBG.BAT | |
: Description: Start Thunderbird debugging with logging. | |
: | |
: Last modified by: [email protected] | |
: On date: 12:55 AM 11/24/2011 | |
: | |
:========================================================================== | |
: Format timestamp. | |
SET HOUR=%time:~0,2% | |
SET dtStamp9=%date:~-4%%date:~4,2%%date:~7,2%_0%time:~1,1%%time:~3,2%%time:~6,2% | |
SET dtStamp24=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2% | |
IF "%HOUR:~0,1%" == " " (SET DATETIMEF=%dtStamp9%) ELSE (SET DATETIMEF=%dtStamp24%) | |
: End timestamp formatting. | |
SET NSPR_LOG_MODULES=mime:5,imap:5,nntp:5,smtp:5,pop3:5,ldap:5,ImapAutoSync:5,MSGDB:5,DockCounts:5 | |
SET NSPR_LOG_FILE=%APPDATA%\Thunderbird\Logs\Raw\%DATETIMEF%.log | |
SET TBIRDPATH=%USERPROFILE%\QA\thunderbird-10.0a1.en-US.win32\thunderbird\ | |
SET TBIRDEXE=thunderbird.exe | |
cd /d "%TBIRDPATH%" | |
ECHO Starting '%TBIRDEXE%' in '%TBIRDPATH%' with log at 'NSPR_LOG_FILE'. | |
start %TBIRDEXE% | |
pause | |
taskkill /im %TBIRDEXE%* /f | |
cd /d "%USERPROFILE%" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment