1. Summary
(1). ". Bat": This is the suffix of Microsoft's first batch of processed files and can be run in almost all Windows operating systems.
(2). ". cmd": it is a command line script designed for Windows NT. It is designed for cmd.exe shell and
=============================================================================Note: cmd command a lot, need to use when you can query!CMD command: Start-to-run, type cmd or command (you can see the system version, the file system version on the
Copy Code code as follows:
On Error Resume Next
Set Outstreem=wscript.stdout
If (LCase right (wscript.fullname,11) = "Wscript.exe") Then
Set objshell=wscript.createobject ("Wscript.Shell")
Objshell.run ("cmd.exe/k cscript//nologo" CHR (34))
Hacker Common Command DaquanNET user Heibai Lovechina/add plus one heibai password for Lovechinanet localgroup Administrators heibai/add him into the administrator groupnet start Telnet on each other's Telnet serviceNET use z:\127.0.0.1c$ map each
Detailed explanation of cmd environment variable setting method, cmd environment variable
Cmd setting environment variables can facilitate the running of the bat script, but note that the variables only apply in the current cmd window (local ), if
CMD command: Start-to-run, type cmd or command (you can see the system version, the file system version on the command line)CHCP modifying the default character setCHCP 936 Default ChineseChcp 650011. Appwiz.cpl: Programs and functions2. Calc: Start
Net use & #92; & #92; IP & #92; IPC $ "/User:" "Create an empty IPC link; S4 U, O 'q (J J, W3 ~ /') M0 RNet use & #92; & #92; IP & #92; IPC $ "password"/User: "User Name" create a non-empty IPC Link @ 9 y * I3 U4 F0 u ^ # F'h1 sNet use h:
1. A cmd command execution result or status value is stored in the variable:%errorlevel%
Most command 0 represents normal, its acquisition and judgment:
If "%errorlevel%" = = "0" Echo executed successfully! Or if errorlevel 0 echo executed
Turn from: http://topic.csdn.net/u/20110417/03/85f52649-064f-46ad-b466-f9a4c154e29b.html?seed=2023046095&r= 75217708#r_75217708
NET use $ ">\\ip\ipc$Content$nbsp;" "/USER:" Establish an IPC NULL linkNET use $ ">\\ip\ipc$Content$nbsp;" Password
gpedit.msc-– Group Policy2. Sndrec32 ——-Recorder3. Nslookup ——-IP Address Detector is a command-line tool that monitors whether DNS servers in a network can correctly implement domain name resolution. It can be used in Windows NT/2000/XP, but it is
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.