
SUCCESS: The process with PID 15176 has been terminated. Or simply kill the process ID taskkill /F /PID ģ420 _1.3. -os win32 -ws win32 -arch x86_64 -showsplash -launcher C:\Users\tk\eclipse\jee-neon\eclipse\eclipse.exe -name Eclipse -launcher.library C:\Users\tk\.p2\pool\plugins\.86_64_1.1.401.v20161122-1740\eclipse_1617.dll -startup C:\Users\tk\eclipse\jee-neon\eclipse\\plugins/_1.3. -launcher.appendVmargs -exitdata 4b20_d0 -product .jee.product -vm C:/Program Files/Java/jre1.8.0_131/bin/javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.8 -XX:+UseG1GC -XX:+UseStringDeduplication -Dosgi.requiredJavaVersion=1.8 -Xms256m -Xmx1024m -Declipse.p2.max.threads=10 =index:/-> -jar C:\Users\tk\Īnd C:\Users\tk>for /f "tokens=1" %i in ('jps -m ^| find "MessagingMain"') do ( taskkill /F /PID %i ) Now get the name and run below command, for /f "tokens=1" %i in ('jps -m ^| find "Name_of_the_process"') do ( taskkill /F /PID %i ) Until the user presses any key, the window remains open instead of closing automatically.First list all the java processes, jps -m

If you're creating a batch file and want the MS-DOS window to remain open, add PAUSE to the end of your batch file.

Microsoft Windows 2000 and Windows XP users can execute the command through CMD.EXE using the /K option. Change the path of the command in the shortcut


If you are running an MS-DOS command or program in Windows, try opening an MS-DOS prompt and executing the command or program from within MS-DOS. Unfortunately, there is no setting in Windows for disabling the auto-closure of the MS-DOS windows. To stop the Tomcat server, type in shutdown and then hit Enter in the original command prompt: Shutdown Tomcat The startup window that appeared earlier will now.
