Open cmd, check the default location (directory) of the command line prompt, enter the directory, create a file with notepad ++, and enter@ Echo offRem indicates that the row is a comment.Rem enters the drive F. You need to switch the drive letter before entering the directory on the drive.F:CD \ myworkspace \Echo job is doneSave the file and name it GTD. BAT as an executable batch script.Then execute the script
\* ^|FIND"%%i") DoDEVCON RESTART *%%j* >nul 2>NULIF ERRORLEVEL1ECHOThe NIC restart failed, manually re-enable the network connection, or restart the computer. NCPA.CPLIF ERRORLEVEL0ECHORestart nic Success ...)PAUSEEXITLimit local user logon timeThis, the use is not very big, in fact, is mainly used to prevent "small white" (Do not spray, I am also a small white AH) use their own computer in the company. So limit the start-up time is only 8 O ' Day in the morning to 6 in the afternoon.@NET USER%
We used to execute PowerShell in cmd:
Copy Code code as follows:
Powershell.exe-file A.PS1
Now want to do this in cmd:
Copy Code code as follows:
A.ps1
You need to select the default open mode for the PowerShell script as Powershell.exe, and you can do it with the right mouse button.
You can also use the following
Tags: event resolution XCA input EXE end script run takes effectExample: adb shell Sendevent/dev/input/event3 1 $ ((0XCA)) 1The above statement contains $ ((0XCA)) and executes Runtime.getruntime (). EXEC ("Sendevent/dev/input/event3 1 $ ((0XCA)) 1") without error, but will not take effect, the workaround is:(1) Convert the 16 binary of 0xca in $ ((0XCA)) to decimal 202,$ ((202)) before executing runtime.getruntime (). EXEC ("Sendevent/dev/input/event
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.