Skip to content

Instantly share code, notes, and snippets.

@ensup
Last active June 9, 2024 12:07
Show Gist options
  • Save ensup/79a3329583436744f0f088cd6fd3f508 to your computer and use it in GitHub Desktop.
Save ensup/79a3329583436744f0f088cd6fd3f508 to your computer and use it in GitHub Desktop.
#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