version 1.11, 2001/07/05 08:25:58 |
version 1.12, 2001/10/22 10:35:49 |
| |
#include "nel/misc/types_nl.h" | #include "nel/misc/types_nl.h" |
| |
#ifdef NL_OS_WINDOWS | #ifdef NL_OS_WINDOWS |
| #include <windows.h> |
#include <direct.h> | #include <direct.h> |
#else | #else |
#include <unistd.h> | #include <unistd.h> |
| |
chdir(ServicePath.c_str()); | chdir(ServicePath.c_str()); |
} | } |
| |
| #ifdef NL_OS_WINDOWS |
| WinExec (ServiceCommand.c_str(), SW_MINIMIZE/*SW_SHOWNORMAL*/); |
| #else |
system (ServiceCommand.c_str()); | system (ServiceCommand.c_str()); |
| #endif |
| |
if (!ServicePath.empty()) | if (!ServicePath.empty()) |
chdir(oldpath); | chdir(oldpath); |