BAT file "Java call"

Source: Internet
Author: User
Tags nslookup disk defragmenter

Runtime.getruntime (). EXEC ("cmd/c del c:\\a.doc");
Runtime.getruntime (). EXEC ("notepad");
Runtime.getruntime (). EXEC ("cmd/c start C:\\a.doc");
Runtime.getruntime (). EXEC ("cmd/c start http://www.baidu.com");
Runtime.getruntime (). EXEC ("cmd/k start C:\\test.bat"); Java calls the bat file

Mysqldump--user=root--host=localhost--password=pass Zhangwei >c:\zw4.sql

How to invoke the cmd command in Java

cmd/c dir closes the command window after executing the dir command.

cmd/k dir does not close the command window after executing the dir command.

cmd/c start dir will open a new window and execute the dir instruction, the original window will be closed.

cmd/k start dir will open a new window and execute the dir instruction, the original window will not be closed.

You 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 Explorer
5. Logoff---------Logout 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 active
Notepad--------Open Notepad
cleanmgr-------Waste Finishing
Start Messenger Service----. Net start Messenger
Compmgmt.msc---Computer Management
. net stop Messenger-----Stop messenger Service
Conf-----------start NetMeeting
Dvdplay--------DVD Player
Charmap--------Start character mapping table
Diskmgmt.msc---Disk Management utility
Calc-----------Start-Up calculator
Dfrg.msc-------Disk Defragmenter
Chkdsk.exe-----CHKDSK disk Check
Devmgmt.msc---Device Manager
regsvr32/u *.dll----Stop DLL file run
DRWTSN32------System Doctor
Rononce-p----15-second shutdown
DxDiag---------Checking DirectX information
Regedt32-------Registry Editor
Msconfig.exe---System Configuration Utility
Rsop.msc.-------Group Policy Result set
Mem.exe--------Show Memory usage
Regedit.exe----Registration Form
Winchat--------XP comes with LAN chat
ProgMan--------Program Manager
WINMSD---------System Information
PERFMON.MSC----Computer Performance monitoring Program
2.36. Winver---------Check the Windows version
Sfc/scannow-----Scan Errors and recover
Taskmgr-----Task Manager (2000/xp/2003
Winver---------Check the Windows version
Wmimgmt.msc----Open Windows Management Architecture (WMI)
Wupdmgr--------Windows Update
wscript--------Windows Script Host Settings
. Write----------WordPad
WINMSD---------System Information
Wiaacmgr-------Scanner and Camera Wizard
Winchat--------XP comes with LAN chat
Mem.exe--------Show Memory usage
Msconfig.exe---System Configuration Utility
Mplayer2-------Easy widnows Media Player
MSPaint--------Drawing Board
Wuyi mstsc----------Remote Desktop Connection
Mplayer2-------Media Player
Magnify--------Magnifier Utility
The. MMC------------Open the console
Mobsync--------Synchronization Command
DxDiag---------Checking DirectX information
DRWTSN32------System Doctor
Devmgmt.msc---Device Manager
Dfrg.msc-------Disk Defragmenter
Diskmgmt.msc---Disk Management utility
DCOMCNFG-------Open System Component Services
DdeShare-------turn on DDE sharing settings
Dvdplay--------DVD Player
. net stop Messenger-----Stop messenger Service
The. Net start Messenger----Start Messenger Service
Notepad--------Open Notepad
Nslookup. Tool Wizard for-------Network management
. ntbackup-------system backup and restore
Narrator-------Screen Narrator
Ntmsmgr.msc----Mobile Storage Manager
Ntmsoprq.msc---Mobile Storage Administrator action Request
Netstat-an----(TC) command Check interface
Syncapp--------Create a Briefcase
Sysedit--------System Configuration Editor
Sigverif.-------File Signature Validator
SNDREC32-------Recorder
SHRPUBW--------Create a shared folder
Secpol.msc-----Local Security Policy
SYSKEY---------System encryption, once encrypted can not be solved, to protect the Windows XP system dual Password
Services.msc---Local Service settings
Bayi. Sndvol32-------Volume Control program
Sfc.exe--------System File Checker
Sfc/scannow---Windows File Protection
TSSHUTDN-------60-second Countdown shutdown command
3.84. TSSHUTDN-------60-second Countdown shutdown command
Tourstart------XP profile (roaming XP programs that appear after installation is complete)
Taskmgr--------Task Manager
EVENTVWR-------Event Viewer
Eudcedit-------Character-font procedure
The. Explorer-------Open Explorer
Packager-------Object Wrapping Program
PERFMON.MSC----Computer Performance monitoring Program
ProgMan--------Program Manager
Regedit.exe----Registration Form
94. rsop.msc-------Group Policy result set
Regedt32-------Registry Editor
Rononce-p----15-second shutdown
regsvr32/u *.dll----Stop DLL file run
98. regsvr32/u zipfldr.dll------Cancel Zip support
Cmd.exe--------cmd command prompt
Chkdsk.exe-----CHKDSK disk Check
101. Certmgr.msc----Certificate Management Utility
102. Calc-----------Start Calculator
103. Charmap--------Start character mapping table
104. CLICONFG-------SQL SERVER Client Network Utility
CLIPBRD--------Clipboard Viewer
106. conf-----------start NetMeeting
107. Compmgmt.msc---Computer Management
108. cleanmgr-------Waste Finishing
109. Ciadv.msc------Indexing Service Program
OSK------------Open the On-screen keyboard
111. ODBCAD32-------ODBC data Source Manager
oobe/msoobe/a----Check if XP is active.
113. Lusrmgr.msc----native Users and Groups
Logoff---------Logoff command
IExpress-------Trojan Bundle tool, System comes with
Nslookup-------IP Address Detectors
117. Fsmgmt.msc-----shared Folder Manager
118. Utilman--------Utility Manager
119. Gpedit.msc-----Group Policy
. Explorer-------Open Explorer

BAT file "Java call"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.