Home  >  Article  >  Computer Tutorials  >  How to run commands in computer w8 system?

How to run commands in computer w8 system?

WBOY
WBOYOriginal
2024-09-04 06:31:251026browse

In the daily use of computers, sometimes we need to run commands to solve problems or complete certain tasks. So, how to run commands in Windows 8 system? PHP editor Banana brings detailed tutorials to help you easily master the method of running commands in Windows 8 system. Please see below for specific steps.

How to run commands in computer w8 system?

1. How to run commands in computer w8 system?

Method 1: The fastest method: Press the Win+R shortcut key anywhere in the system, and the run command input box will appear immediately. Method 2: Use the super menu to press the Win+X key combination anywhere in the system. The Win8 super menu will appear in the lower left corner of the desktop. Click "Run" in it, and the run command input box will appear immediately! Method 3: Start the screen search in On the Win8 start screen, slide the mouse to the upper right corner or lower right corner of the screen, click "Search" in the toolbar that appears, and enter "Run" in the search box that appears. A run command button will appear in the upper left corner of the screen. After clicking, it will disappear. The run command input box appears!

2. How to open the computer run command?

Sometimes when we use a computer, we need to enter a running command to operate the computer. So how do we open the running command of the computer? The editor below will introduce two methods for you!

1. Directly press the window key + "R" key on the computer keyboard, and the run command bar will pop up. This is the most direct and fastest way to open it!

2. Open the window icon in the lower left corner of the computer desktop (win7 system), then find the "Attachments" folder in the options bar, click on it and there will be a "Run" option, just open it!

3. How to set the computer running command?

1/8

Use the "Windows + R" key combination, or right-click the start menu icon and select the "Run" option in the pop-up menu. Open the run window

2/8

Open the on-screen keyboard: enter the command "osk" in the run input box, and then click OK. When our keyboard cannot be used, we can open the on-screen keyboard for operation, which does not affect work and can be used in emergencies.

3/8

Open the control panel: enter the command "control" in the run input box, and then click OK. You can quickly open the control panel, and then you can perform further operations. For example, if you need to uninstall a program, after opening the control panel, click on the program.

4/8

Open the system configuration utility: enter "msconfig" in the run input box, and then click OK. Then in the window interface that opens, select the Startup tab to turn off the startup items to improve the starting speed.

5/8

Scheduled shutdown: Enter "at 23:50 shutdown -s" in the run input box and click OK. Then the system will automatically shut down at 23:50, and the time can be modified as needed.

6/8

Cancel scheduled shutdown: Enter the command "shutdown -a" in the run input box, and then click OK. When we set the scheduled shutdown time and want to cancel it and then reset it, we can just follow the above command.

7/8

Open the calculator: enter the command "calc" in the run input box, and then click OK. When we can't find a calculator or don't have a calculator around us, we can follow the above command and open the calculator that comes with the system.

8/8

Open the magnifying glass: enter the command "magnify" in the run input box, and then click OK. When we feel that the text or picture we are browsing is too small to see clearly, we can use the above command to open the magnifying glass, which can clearly enlarge the content. This is especially helpful for people with myopia or presbyopia.

4. How to clear the computer running commands?

The clearing steps are as follows:

1. Press win+r, enter regedit, and click OK;

2. Click to expand HKEY-CURRENT-USERSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU;

3. The list on the right is the history record. Drag and select, right-click, and select Delete;

This is a necessary part of Windows. We can simply understand it as a quick call by an application. components. Through the "Run" window, you can call any application in Windows or even DOS commands. It is used frequently in system maintenance and must be mastered.

5. Does the computer run desktop commands?

We press the "win+r" keys on the keyboard to open the "Run" window. If pressing "win+r" does not work, you can check out this tutorial on what to do if the Win key does not work.

A collection of common commands in the run window:

1. Computer management

lusrmgr.msc (local user and user): Set user permissions, etc.;

devmgmt.msc (device management): computer hardware and driver management;

diskmgmt.msc (disk management): computer disk information;

services.msc (local service settings) : Turning on and off some services in the Windows system;

Perfmon.msc (Performance Monitor): Performance Monitor;

eventvwr (Event Viewer): View the latest time recorded by the computer Events that occurred;

2. Quickly open files

(Enter directly to open the C drive, and then enter the folder name to open the folder in the C drive);

. (Open the folder where the user file is located);

%temp% (Open the temporary folder);

3. System tools

notepad (notepad);

mspaint (drawing);

osk (virtual keyboard);

write (writing pad);

magnify (magnifier);

calc (calculator);

4. Control panel settings

main.cpl (mouse settings);

ncpa.cpl (network connection settings;

> desk.cpl (desktop settings);

inetcpl.cpl (Internet properties);

mmsys.cpl (sound and audio device settings);

firewall.cpl ( Firewall settings);

5. Other commands

explorer (file explorer, which can be opened directly with win+e);

taskmagr (task manager);

regedit (registry editor);

gpedit.msc (group policy editor)

6. How to enter the run command on Lenovo computers? 1. Use the shortcut keys to open it and hold down the "Win key + R" at the same time to display the "Run" window

2. You can also click "Start" in the Windows 7 operating system, and then select. "Attachment", you can see the "Run" shortcut in the attachment

Third, the last way is to display the "Run" hidden by Microsoft again on the "Start" button. Right-click, select "Properties", then click "Customize" in the "Start Menu" tab, and check the box in front of "Run Command" in the pop-up dialog box. After confirmation, you will find that "Run" appears again. Appears on the start menu of Windows 7.

7. How to run commands in PHP

When developing and managing PHP projects, sometimes PHP provides several ways to run commands in the code. To achieve this goal. This article will introduce some common methods and their advantages and disadvantages

1. Using the exec function

PHP’s

function allows us to execute the operating system in code. Command. Its usage is very simple:

exec

In this example, we use the <?php $output = exec('command'); echo $output;?> function to execute a command and save its output into the variable

. Then, we can use statement displays the output on the web page. However, it is worth noting that the exec function can only return the last line of output of the command. If we need to get the complete output, we can use $output. The second parameter of the function to save the output of all lines: echo

execexecAn important note about using the

function to run commands is that it may be subject to security restrictions. Therefore, when using the

function, we need to handle user input carefully to prevent potential security holes. <?php exec('command', $output); foreach ($output as $line) { echo $line; }?>2. Use the shell_exec function

exec The exec function is very similar to the

function, but it returns the complete output of the command instead of just the last line. Its usage is as follows:

shell_execexecSimilarly, we can save the output of all lines by using the second parameter of the

function.

<?php $output = shell_exec('command'); echo $output;?>Like the function, the

function is also subject to security restrictions. Therefore, we should be careful with user input when using it. shell_exec

3. Use the system function

execPHP's shell_exec function is used to execute commands and print the output directly to the screen. Its usage is as follows:

system Unlike

and

, the <?php system('command');?> function does not save the output of the command to a variable, but directly Print to screen. This makes the function ideal for executing simple commands on the command line.

execSimilarly, shell_exec functions are subject to security restrictions and require appropriate input validation and filtering when used. systemsystem4. Use the passthru function

The system function is similar to the

function and is also used to execute commands and print output directly. But the

function not only prints the output of the command, it also passes it directly to the browser. Its usage is as follows:

passthrusystempassthru

The function is very useful for situations where command output needs to be passed directly to the browser, such as executing some interactive commands.

<?php passthru('command');?>However, the use of functions also requires careful handling of input to avoid security risks.

passthru5. Use backticks

In addition to using the built-in functions provided by PHP, we can also use backticks (`) to execute commands: passthru

<?php $output = `command`; echo $output;?>

Like the exec function, backticks will only return the last line of output of the command. To get the complete output we can use the shell_exec function.

Although backticks can be convenient for executing commands in some situations, their use is also subject to some restrictions. For example, if the server has disabled the ability to execute commands with backticks, this method will not work.

Summary

Running commands in PHP can be very useful in certain situations, especially in scenarios where you need to interact with external tools or operating systems. However, we should use these features with caution and always pay attention to input validation and filtering to prevent potential security issues.

When choosing to use exec, shell_exec, system, passthru, or backticks, we need to make decisions based on specific needs and security requirements.

8. What are the computer running commands?

1. regedit.exe registry command

This action command can change and find the settings of the system registry. The computer's system registry contains some information about the processes running on the computer.

2. gpedit.msc Group Policy Command

Start - Run - open the run window and enter the "gpedit.msc" command, click OK and then start the Group Policy Editor .

Generally, you can change the policy settings of the computer by opening Computer Configuration - Windows Settings - Security Settings - Local Policies. Group Policy sets two aspects of the computer, one is the local computer configuration, and the other is the local user configuration.

3. MSConfig.exe system configuration program

Start - Run - open the run window and enter the "gpedit.msc" command. Click OK to find out whether the application is open. Or it's disabled.

Or start running C:WINDOWSpchealthhelpctrinariesmsconfig.exe to see if the system configuration utility can start normally.

4. ntbackup system backup and restore

It is best to make a note of important files in the computer in advance to avoid file loss caused by sudden computer crashes and other reasons. Start - Run - Open the run window and enter the "ntbackup command. Select the object to be noted in the pop-up backup tool, select the path to save the backup, and start the backup or restore.

5. devmgmt.msc Device Manager

The general "Device Manager" can find or update device drivers, load and uninstall devices, update device drivers or view device properties, etc. 🎜>Open Device Manager: Start-Programs-Accessories-Shortcut Functions-Device Manager or Start-Run-devmgmt.msc.

9. Top 10 computer running commands<.>

When we use computers, most of the operations are done through the graphical interface, but sometimes when a specific task is needed, the operation can be completed more quickly using the run command. Today we will introduce the top ten on the computer. Run commands to help you utilize computer resources more efficiently. 1. ipconfig Enter ipconfig in, you can quickly view network information such as IP address, subnet mask, default gateway, etc.

2. ping

The ping command is used to test the connection status with another computer. , and measure the time it takes for a packet to get from one location to another. Enter ping plus the destination IP address or domain name to perform the test. tracert

The tracert command can be used. Helps you track the transmission path of data packets in the network. By entering tracert and the destination IP address or domain name, the system will display the router information through which the data packet passes, which is helpful for troubleshooting network faults.

4. netstat<.>

The netstat command is used to display network connection, routing table and network interface information. By entering netstat, you can view the current computer network connection status to facilitate network monitoring and management.

5. nslookup<.>

The nslookup command is used to query Domain Name System (DNS) information, including domain name resolution results, domain name servers, etc. Enter nslookup plus the domain name to obtain the relevant DNS query results.

6. systeminfo.

The systeminfo command can display detailed information about the computer system, including operating system version, host name, installed patches, etc. Use systeminfo to quickly understand the basic configuration information of the computer.

7. tasklist.

The tasklist command is used to list the list of processes running on the current computer, including process name, PID (process identifier) ​​and other information. Through tasklist, you can view and manage the processes in the system.

8. diskpart

diskpart is a disk partition tool that can be used to create, delete, format disk partitions and other operations. You can perform disk management tasks at the command line interface by typing diskpart.

9. gpresult

The gpresult command is used to display the group policy information applied to the computer or user. Through gpresult, you can check whether the group policy settings are correct and effective, which facilitates system management and troubleshooting.

10. sfc

sfc(System File Checker)命令用于扫描并修复系统文件中的损坏问题。输入sfc /scannow后,系统将自动检测并修复受损的系统文件,保证系统正常运行。

The above is the detailed content of How to run commands in computer w8 system?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn