Last active
June 9, 2024 12:07
-
-
Save ensup/79a3329583436744f0f088cd6fd3f508 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main(void) { | |
char filename[128]; | |
char exec[1024] = "java -jar "; | |
printf("서버 파일 이름 입력 (ex.server.jar): "); | |
scanf("%s", filename); | |
strcat(exec, filename); | |
strcat(exec, " --nogui"); | |
system(exec); | |
printf("Press Any key to continue..."); | |
getch(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment