diff options
-rw-r--r-- | windows/draw.c | 3 | ||||
-rw-r--r-- | windows/make_icon.rc | 1 |
2 files changed, 3 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{ diff --git a/windows/make_icon.rc b/windows/make_icon.rc new file mode 100644 index 0000000..ccfccbd --- /dev/null +++ b/windows/make_icon.rc @@ -0,0 +1 @@ +id ICON "../icon/icon.ico" |