diff options
author | Louie Shprung <louie.shprung@iridium.com> | 2021-07-27 19:53:22 -0700 |
---|---|---|
committer | Louie Shprung <louie.shprung@iridium.com> | 2021-07-27 19:53:22 -0700 |
commit | 725fac1757f754c5b1c8267f6877b013fc3f4fe6 (patch) | |
tree | 807802d0e4b0fd9011af5af785b4a6dd087a8757 /windows/draw.c | |
parent | 78fa8d51fd08795dd7b3a5d4a2f675f7d213ebf1 (diff) |
Improved launching windows applications
Diffstat (limited to 'windows/draw.c')
-rw-r--r-- | windows/draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/windows/draw.c b/windows/draw.c index 9769208..28bef68 100644 --- a/windows/draw.c +++ b/windows/draw.c @@ -16,10 +16,11 @@ void launch(){ file[0] = '\0'; if(!(strcmp(program, "./"))){ + strcat(file, "/C "); strcat(file, "\""); strcat(file, path); strcat(file, "\""); - ShellExecute(NULL, NULL, file, NULL, NULL, SW_SHOW); + ShellExecute(NULL, NULL, "cmd.exe", file, NULL, SW_HIDE); } else{ |