Created
January 17, 2022 16:43
-
-
Save qqobb/65a3282493f85f0f0363e68cdb3dbb1e to your computer and use it in GitHub Desktop.
Start Zotero and redirect the debug output logging to a text file.
This file contains 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
:: Name : zotero_log.cmd | |
:: Purpose : Start Zotero and redirect the debug output logging to a text file. | |
:: Details : CMD batch script for Windows, tested on Windows 10. | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
SET scriptdir=%~dp0 | |
SET scriptname=%~n0 | |
SET zoteropath=C:\Program Files (x86)\Zotero\zotero.exe | |
:: logfile's name: [scriptname]_YYYY-MM-DD_HH_MM_SS.txt | |
:: https://stackoverflow.com/a/19163883 | |
FOR /f %%a IN ('powershell -Command "Get-Date -format yyyy-MM-dd_HH_mm_ss"') DO SET datetime=%%a | |
SET logfile=%scriptdir%\%scriptname%_%datetime%.txt | |
:: https://www.zotero.org/support/debug_output#logging_to_a_terminal_window | |
"%zoteropath%" -ZoteroDebugText > "%logfile%" | |
EXIT /B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://forums.zotero.org/discussion/93967/zotero-debug-output-file-is-created-empty