//go:build windows package main import ( "os/exec" "path/filepath" ) // openFile opens any file with the Windows default application (no cmd flash). func openFile(path string) { _ = shellOpen(path) } // applyHiddenStartPath launches the worker binary hidden (no window). func applyHiddenStartPath(path string) { cmd := exec.Command(path) cmd.Dir = filepath.Dir(path) prepareHidden(cmd) _ = cmd.Start() } // applyWaitRun launches an exe directly and waits for it to exit (hidden). func applyWaitRun(path string) { cmd := exec.Command(path) cmd.Dir = filepath.Dir(path) prepareHidden(cmd) _ = cmd.Run() }