See how much memory your PC supports: wmic memphysical get maxcapacity Querying DNS: nslookup a.root-servers.netRouting Line: tracertRun Box Input: msinfo32 (view native details)services.msc (direct access to the list of services)msconfig (Configure boot-up service entry and boot-up system) The following are common DOS commands and run commands:Start with a simple Run command: Shortcut key Win+r (both the Run box and the DOS Black window are availab
command delimiter ' '
Multiple commands. And, for compatibility reasons,/x is the same as/e:on,/y and
/e:off is the same, and/R is the same as/C. Ignore any other command options.
If you specify/C or/K, the rest of the command line after the command option is processed as a command line, in which case the following logical processing quotation mark character (") is used:
1. If all of the following conditions are true, the quote character on the co
This article mainly introduces how to use PHP to start windows applications, execute bat batch processing, and execute cmd commands (exec and system functions). For more information, see
Exec or system can call the cmd command.
Directly run the code:
The code is as follows:
/** Open the windows calculator */Exec ('Start C: WindowsSystem32calc.exe ');
/** Php ge
exit command is not executed, the subsequent call to the ReadToEnd () method will feign death.//Similar symbols are also available in | | The former indicates that the previous command must be successful before the subsequent command is executed, which means that the previous command execution must fail before the subsequent command is executed//gets the output information of the cmd window stringOutput =P.standardoutput.readtoend ();
Several ways to open cmd:Search1: Open My Computer, enter the address in the Address bar and press ENTER to open: C:\WINDOWS\system32\cmd.exe2: Open My Computer, go to the C drive Windows\System32 find cmd.exe and then open3: Open the Run dialog box with Windows key +r, enter cmd after the click OK, the Windows key is the bottom left corner of the CTRL key with the ALT key in the middle of the Windows icon key.4: Click on the bottom left corner of the
In cmd command line and powershell, users who often use command line or powershell to copy and paste the text will certainly encounter this situation: it is very easy to paste the text, right-click and choose paste, however, if you want to copy command lines or powershell commands, you do not know what to do. In fact, you only need to change its attributes. PS: powershell is a task-based command line shell,
1. Enter the drive letter such as C: And press enter, which is equivalent to drive C (drive C is generally in the desktop directory) 2. Enter the CD directory name and press enter (the directory name is the first-level directory name in drive C, or the directory path in drive C ). For example, CD mm is used to enter the MM folder. (If you want to open a file, you do not need CD) 3. If you want to return to the upper-level directory, simply enter CD.... You can return to the upper-level di
Because an external program needs to be called with SQL script, try the xp_cmdshell command and find that it only executes one line of commands by default, and finally finds the following method:The multi-line cmd command is processed into a bat file, which is then directly executed using the path + file:such as the following Hiapk.bat file:CD C:\Users\Administrator\Desktop\wandoujiaPython anzhi.pyCall with
Sometimes under Windows often can't find the corresponding management tool location, especially in Win10, remember once win10 updated, unexpectedly find Control Panel, embarrassed. Now I don't have to look for it anymore. Continuous update ingSummary of COMMON commands
Function
Command
Control Panel
Control
Local Policy Editor
Gpedit.msc
Calculator
Calc
Printer u
If you are in a small domain user's machine, to do some administrative operations, it is inevitable to use CMD to open some previously only in the graphical interface open programs. Here are some of the common actions I've collected.Start the program in an identity: runas/user:it\n176197 cmd//can also directly right-click the program to run, tap "Run as", if there is no "run as", hold down SHIFT and right-c
There is no need to manually configure environment variables under the iOS system, while Windows is different. See many tutorials on the web, found that the method of configuring environment variables is prone to problems under WIN10, the CMD verifies that both Java and java-version are displayed as normal, and JAVAC displays non-internal and external commands.The reason is that in win10 different from other win system configuration environment variab
Perhaps the most interesting thing is to use the extended stored procedure xp_mongoshell to run the console commands of the operating system. This method is also very simple. You only need to use the following SQL statement:
Exec master. DBO. xp_mongoshell 'dir C :/'
However, more and more database administrators are aware of the potential danger of this extended stored procedure. They may delete or rename the Dynamic Linked Library xplog70.dll file o
CMD Run Command Start → run → cmd → enter the following command: Gpedit. msc ----- Group Policy sndrec32 ------- RecorderNSLookup ------- IP address detector explorer ------- open Resource ManagerLogoff --------- logout command tsshutdn ------- 60 seconds countdown shutdown commandLusrmgr. msc ---- local user and group services. msc --- local service settingsOobe/msopad/A ---- check if XP is activated not
")NET start|findstr/i/C: "Oracleoradb10g_home1isql*plus" >nulset k=1| | Set k=0If%k%==0 (net start "Oracleoradb10g_home1isql*plus")NET start|findstr/i/C: "Oracleoradb10g_home1tnslistener" >nulset k=1| | Set k=0If%k%==0 (net start "Oracleoradb10g_home1tnslistener")NET start|findstr/i/C: "ORACLESERVICEORCL" >nulset k=1| | Set k=0If%k%==0 (net start "ORACLESERVICEORCL")Echo.echo Oracle Service has been successfully opened ...Echo.PauseExit: CMD2Echo.Echo Close the Oracle service ...NET start|findst
An article in my blog introduces the basic principles and methods of SQL injection. Perhaps the most interesting thing is to use the extended stored procedure xp_mongoshell to run the console commands of the operating system. This method is also very simple. You only need to use the following SQL statement:
Exec master. DBO. xp_mongoshell 'dir C :/'
However, more and more database administrators are aware of the potential danger of this extended stor
Original article title: C # program a CMD command window executes multiple DOS commands
Original article Address: http://www.cnblogs.com/visibleisfalse/p/3578886.html
The following code has a modified, marked red code, which indicates that after executing a DOS command, wait for execution to complete. Public voidDodos (stringCOMD1,stringCOMD2,stringcomd3) {Process P=NewProcess ();//Create a Process
the program, we need the full name when we run the class file, the command is modified to: Java Com.hafiz.zhang.ZiWe will find the following errorThis is because we do not have a subfolder Com/hafiz/zhang and the Zi.class file does not exist under the subfolder, so the main class cannot be found.The solution: Use javac-d. *.java ("-D." Represents the Create package path in the current directory) command to compile, so the Javac command automatically helps us create the folder specified by the p
The Notepad.
MSPaint Drawing
IISReset Restarting IIS
Appwiz.cpl Control Panel
Inetmgr IIS Manager
EVENTVWR Event Viewer
MSTSC Remote Desktop
Net START service Name
net start Mssql$instancename (for example: MSSQLSERVER) Start the database service
net stop Mssql$instancename Stop database service
SSMS Open Management Studio
Tasklist Show List of processes
Kill the process taskkill/f/t/im
Windows-Program Ape should memorize the
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.