Hi,
I don't know, but probably many DavMail users are using it with Thunderbird, while we wait of the Exchange support.
In this sense, you can always run DavMail on startup or ... why always running it if Thunderbird is not going to be used?
I have created a couple of scripts to run DavMail when Thunderbird is started. We can easily set a loop to check if Thunderbird is still up and running in order to close it, but I guess there is not much sense, as the email app is almost always opened.
Below I include both files. Use the .vbs script as a replacement of your Thunderbird target in your shortcut.
Hope you find it interesting.
See you
Thunderbird-with-DavMail.ps1
# Configuration variables
$ThunderbirdPath = "C:\Program Files\Mozilla Thunderbird\thunderbird.exe"
$DavMailPath = "C:\Path-To-DavMail\davmail64.exe"
$DavMailProcessName = "davmail64.exe"
# Leave it empty for default properties location
$DavMailArgs = @(
"C:\Path-To-DavMail\davmail.properties"
)
function Start-IfNotRunning {
param(
[string]$processName,
[string]$exePath,
[string[]]$arguments = @()
)
$running = Get-Process -Name $processName -ErrorAction SilentlyContinue
if (-not $running) {
Start-Process -FilePath $exePath -ArgumentList $arguments
Start-Sleep -Seconds 2
}
}
# Execute DavMail if not running
Start-IfNotRunning -processName $DavMailProcessName -exePath $DavMailPath -arguments $DavMailArgs
# Launch Thunderbird
Start-Process -FilePath $ThunderbirdPath
# powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Path\Thunderbird-With-DavMail.ps1"
Run-Thunderbird-with-DavMail.vbs
Set sh = CreateObject("Wscript.Shell")
' Location of VBS script
scriptDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)
' PS1 script is in same folder
ps1 = scriptDir & "\Thunderbird-With-DavMail.ps1"
' Hidden execution
sh.Run "powershell.exe -ExecutionPolicy Bypass -File """ & ps1 & """", 0, False
Hi,
I don't know, but probably many DavMail users are using it with Thunderbird, while we wait of the Exchange support.
In this sense, you can always run DavMail on startup or ... why always running it if Thunderbird is not going to be used?
I have created a couple of scripts to run DavMail when Thunderbird is started. We can easily set a loop to check if Thunderbird is still up and running in order to close it, but I guess there is not much sense, as the email app is almost always opened.
Below I include both files. Use the .vbs script as a replacement of your Thunderbird target in your shortcut.
Hope you find it interesting.
See you
Thunderbird-with-DavMail.ps1
Run-Thunderbird-with-DavMail.vbs