Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スクリプト pclose(popen("D: & cd D:\server\LoginServer & start /b startLoginServer.bat", "r")); startloginserver.batでJavaプロセスを開始し、必要に応じてそれを殺すためにpidを取得する必要があります。私はこれらのことで新しいです。
pclose(popen("D: & cd D:\server\LoginServer & start /b startLoginServer.bat", "r"));
startloginserver.bat
それを行うためのcmdにはコマンドがあります.. pidtasklistでプロセスをリストし、次に入力します. 注: pid はリストされたプロセス ID です。 taskkill /PID pid /F
tasklist
taskkill /PID pid /F