Login Page - Create Account

Support Board


Date/Time: Tue, 01 Apr 2025 07:36:24 +0000



Post From: Run Program When This Alert Triggered: cmd.exe disrupts windows

[2025-03-27 15:19:00]
User719512 - Posts: 307
Sierra Chart Engineering,
To allow people to run something more than just a single program with no arguments, what are your thoughts/plans to add a new field/setting to allow for both:
Run Program when this Alert Triggered
Arguments for Run Program when this Alert Triggered

These would map to CreateProcess API parameters:
lpApplicationName
lpCommandLine


Right now, the solution I have is adding a level of indirection and writing my own single exe to spawn my own process with arguments which might be more advanced than many people might want or be technical enough to do especially if they don't have a c++ compiler installed.

To speed my development/solution I asked Grok:
Generate a c++ program that reads a well-known config file to call create process API with a program and args as 2 config values.

Result was simple program that is a single exe, reads from a .ini file for lpApplicationName and lpCommandLine in same directory, and launches my desired program with arguments.