Command line switch to launch to systray for desktop app

Hi. Would like to be able to launch with a command line option like /startup so that the desktop app executes without its GUI opening to the screen. I have the option “close to systray” enabled, so I could do a scheduled task or whatever with a command line like:

C:\Users\xxx\AppData\Local\distill_web_monitor\distill-web-monitor.exe /STARTUP

Thanks!

1 Like

@jaddorf Thank you for the feedback. I’ll share this request with our engineering team for review. If the team decides to implement it, the option may be included in a future update.

1 Like

This short powershell script can be used in the interim to launch Distill Web and then quickly close its initial launch window :slight_smile:

Simply put a shortcut in the Startup folder or use a scheduled task to launch this on WIndows logon.

Start-Process -FilePath “C:\Users\xxxuserprofilexxx\AppData\Local\distill_web_monitor\distill-web-monitor.exe”

$timer = [Diagnostics.Stopwatch]::StartNew()

while ($timer.Elapsed.TotalSeconds -lt 30) {
$window = Get-Process | Where-Object {
$_.MainWindowTitle -eq “Watchlist - xxxusernamexxx - Distill Web Monitor”
} | Select-Object -First 1

if ($window) {
$window.CloseMainWindow() | Out-Null
break
}

Start-Sleep -Milliseconds 100

}

$timer.Stop()

/jim

1 Like