» An ultimate catalog of computer data
Forum posts for thunderbird.exe
Batch Script Logging and it runs double?
I wrote a batch script to make a backup of my Thunderbird client on Windows 7. It works perfectly, but I am having issues with the logging part.
Essentially, I would like it to see what is going on in the command window when it runs, as well as to log all output to a .log file.
The problem: It logs to a file, but runs without anything in the command window. Then after it completes, it runs AGAIN, but this time displays what's happening in the command window.
Included: The script. The log file.
Script:
@ECHO ON
rem
call :Logit>>%Desktop%'%DATE:~7,2%.%DATE:~4,2%.%DATE:~-4%-ThunderbirdBackup'.log
:Logit
echo Backup Start at = %date% %time%
echo Beginning Automatic Backup and Encryption for Thunderbird
echo This will take approximately 45 seconds to complete
echo Killing Thunderbird.exe
taskkill /F /IM thunderbird.exe
echo Give the computer a moment to complete task
timeout /T 3
echo Zipping to Desktop
'C:Program Files7-Zip7z.exe' a -t7z %Desktop%'%DATE:~7,2%.%DATE:~4,2%.%DATE:~-4%-ThunderbirdBackup'.7z %AppData%ThunderbirdProfiles -m0=lzma2 -mx3 -mmt=8 -mhe=on
echo Backup Complete at = %date% %time%
Thank you for any assistance you cold lend.
The log:
ThunderbirdScript-Log-Pastebin
View complete forum thread with replies
Other posts related to thunderbird.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Determine when a third-party application becomes active [duplicate]
How to attach a PDF file to a new email in Outlook and next move the file to a different fol…
Syntax looping issue with Dos batch file no execution
Escaping commas in batch file START command?
Thunderbird compose email in a batch script - continue to next command
Piping current buffer as a string(!) to an external command
Create Thunderbird email from Excel macro
Batch Script Logging and it runs double?