Using a Java program to open a site recently made something use SWT technology when a client program needs to be upgraded in the prompt upgrade click on a connection on the window to open the download page It took me a very long time to write it down even forget, need to be able to use directly.
try {//not run in a Java program but run Runtime.getruntime () in the operating system. EXEC ("cmd/c start Http://blog.csdn.net/blogluoq i/"); Runtime.getruntime (). EXEC ("Explorer \" http://www.chni.com.cn\ ""); } catch (IOException e) {//TODO auto-generated catch block E.printstacktrace (); }Ava's Runtime.getruntime (). EXEC (COMMANDSTR) is able to invoke the run cmd command. cmd/c dir closes the command form after the dir command is run. cmd/k dir does not close the command form after the dir command is run. cmd/c start dir will open a new form and run the dir command, the original window experience is closed. cmd/k start dir will open a new form and run the DIR directive, and the original form will not be closed. can use cmd/? To view help information. ★cmd command ★ 1. Gpedit.msc-----Group Policy 2. Sndrec32-------Recorder 3. Nslookup-------IP Address detector 4. Explorer-------Open Resource Manager 5. Logoff---------Logoff command 6. Tsshutdn-------60 seconds Countdown shutdown command 7. Lusrmgr.msc----native users and Groups 8. Services.msc---Local Service settings 9. oobe/msoobe/a----Check if XP is activating 10. Notepad--------Open Notepad 11. cleanmgr-------Garbage finishing 12. net start Messenger----Start the Messenger service 13. Compmgmt.msc---Computer Management 14. net stop Messenger-----Stop the messenger service 15. Conf-----------start the netmeeting 16. Dvdplay--------DVD player 17. Charmap--------Start character mapping table 18. Diskmgmt.msc---Disk Management utility 19. Calc-----------Start Calculator 20. Dfrg.msc-------Disk Defragmenter 21. Chkdsk.exe-----CHKDSK disk check 22. Devmgmt.msc---Device Manager 23. regsvr32/u *.dll----Stop DLL file runs 24. DrWtsn32------System Doctor 25. Rononce-p----15 second shutdown 26. DxDiag---------Check DirectX information 27. Regedt32-------Register Editor 28. Msconfig.exe---System Configuration Utility 29. Rsop.msc-------Group Policy result set 30. Mem.exe--------shows memory usage 31. Regedit.exe----Registration Form  32. Winchat--------XP comes with LAN chat 33. ProgMan--------Program Manager 34. WINMSD---------System Information 35. PERFMON.MSC----Computer performance monitoring program 2. Winver---------Check the Windows version number 37. Sfc/scannow-----Scan for errors and restore 38. Taskmgr-----Task Manager (2000/xp/2003 39. Winver---------Check the Windows version number 40. Wmimgmt.msc----Open Windows Management Architecture (WMI) 41. Wupdmgr--------Windows Update 42. wscript--------Windows Script Host Settings 43. Write----------WordPad 44. WINMSD---------System Information 45. Wiaacmgr-------Scanner and Camera Wizard 46. Winchat--------XP comes with LAN chat 47. Mem.exe--------shows memory usage 48. Msconfig.exe---System Configuration Utility 49. Mplayer2-------Simple widnows media player 50. MSPaint--------drawing board 51. MSTSC----------Remote Desktop Connection 52. Mplayer2-------Media Player 53. Magnify--------Magnifier Useful program 54. MMC------------to open the console 55. Mobsync--------Synchronous Command 56. DxDiag---------Check DirectX information 57. DRWTSN32------System Doctor 58. Devmgmt.msc---Device Manager 59. Dfrg.msc-------Disk Defragmenter 60. Diskmgmt.msc---Disk Management utility 61. DCOMCNFG-------Open the System Component Services 62. DdeShare-------turn on DDE sharing settings 63. Dvdplay--------DVD player 64. net stop Messenger-----Stop the messenger service 65. net start Messenger----Start the Messenger service 66. Notepad--------Open Notepad 67. Nslookup Tool Wizard for-------Network management 68. ntbackup-------system backup and restore 69. Narrator-------Screen narrator 70. Ntmsmgr.msc----Mobile Storage Manager 71. Ntmsoprq.msc---Mobile Storage Administrator operation request 72. The Netstat-an----(TC) command checks the interface 73. Syncapp--------Create a Briefcase 74. Sysedit--------System Configuration Editor 75. Sigverif-------File Signature Validator 76. Sndrec32-------Recorder 77. SHRPUBW--------Create a shared directory 78. Secpol.msc-----Local Security Policy 79. SYSKEY---------System encryption, once encrypted can not be solved, to protect the Windows XP system dual password 80. Services.msc---Local Service settings 81. SNDVOL32-------Volume Control program 82. Sfc.exe--------System File Checker 83. Sfc/scannow---WINdows File Protection 84. Tsshutdn-------60 seconds Countdown shutdown command 3. TSSHUTDN-------60-second Countdown shutdown command 85. Tourstart------XP Brief Introduction (the Roaming XP program that appears after installation) 86. Taskmgr--------Task Manager 87. EVENTVWR-------Event Viewer 88. Eudcedit-------The 89 of the word-font process. Explorer-------Open Resource Manager 90. Packager-------Object Wrapper program 91. PERFMON.MSC----Computer performance monitoring program 92. ProgMan--------Program Manager 93. Regedit.exe----Registration Form 94. Rsop.msc-------Group Policy result set 95. Regedt32-------Register Editor 96. Rononce-p----15 second shutdown 97. regsvr32/u *.dll----Stop DLL file to run 98. regsvr32/u zipfldr.dll------Cancel zip support 99. Cmd.exe--------cmd command prompt 100. Chkdsk.exe-----CHKDSK disk check 101. Certmgr.msc----Certificate Management utility 102. Calc-----------Start Calculator 103. Charmap--------Start character mapping table 104. Cliconfg-------The SQL SERVER Client Network useful program 105. CLIPBRD--------Clipboard Viewer 106. Conf-----------start the netmeeting 107. Compmgmt.msc---Computer Management 108. cleanmgr-------Garbage finishing 109. CIADV.MSC------Indexing Service Program 110. OSK------------Open the On-screen keyboard 111. ODBCAD32-------ODBC data Source Manager &Nbsp;112. oobe/msoobe/a----Check if XP is activating 113. Lusrmgr.msc----native users and Groups 114. Logoff---------Logoff command 115. IExpress-------Trojan Bundle tool, the system comes with 116. Nslookup-------IP Address detector 117. Fsmgmt.msc-----shared Directory Manager 118. Utilman--------Utility Manager 119. Gpedit.msc-----Group Policy 120. Explorer-------Open the Explorer javac in fact run a just not output run result because you do not output part of the run result assume you run Runtime.getRuntime.exec ("cmd"); I can't see the results.