How to determine whether the computer boot times out in batch processing

Updated on number 2024-05-04
11 answers
  1. Anonymous users2024-02-09

    : I read your instructions, which means that the test: when the first test, if it exists, it will be tested 2 minutes later

    If it doesn't exist, turn it on: If it still exists after 2 minutes for some special reason, it's over, in Open: ** as follows:

    echo off & color 0d:1 set a= set b= cls tasklist /nh|find /i "%a%" if errorlevel 1 (call :3) else ( call :

    2 ):2 cls & timeout -t 120 -nobreak>nul tasklist /ah|find /i "%a%" if errorlevel 1 (call :3) else ( call :

    3 ):3 taskkill /f /im "%a%" cls & start "" "%b%"& exit :: China Batch Scripting Alliance.

  2. Anonymous users2024-02-08

    Is it a single or multiple restarts,If it's a single time, it's not the most direct to use Qianyu intelligent shutdown software,

  3. Anonymous users2024-02-07

    ARP the other party can also refuse

    If it is taken into account that the other party is going to refuse, then there is no universal way to solve it.

    If you want to open port 80 of the web service or port 110 of the email service for the services provided by the other party, you can check whether these ports are opened. The disadvantage of detecting if a port is open is that if the port is not opened, or if the machine is not started, the program will wait a long time before returning after a timeout.

  4. Anonymous users2024-02-06

    1、ping

    2\telnet

    3\taskkill

    4 Check the router IP list.

    5. Switch port indicator 6

  5. Anonymous users2024-02-05

    Here's a batch reference that I wrote earlier, and it's pretty much the same as your requirements.

  6. Anonymous users2024-02-04

    You can think backwards and constantly output time txt, which time is missing a period of time.

  7. Anonymous users2024-02-03

    As long as it can't be turned on from 23:59 in the evening to 07:00 in the morning, there is no requirement for other time periods?

    echo off

    if %timeis% lss 07:00:00:00 goto shutdownit

    shutdownit

    shutdown -s -f -t 0

  8. Anonymous users2024-02-02

    Here it is"automatic updates"For example, you can change this service to the one you need, and the batch processing is as follows:

    Code to start

    echo off

    net start|findstr /i /c:"automatic updates">nul&&set k=1||set k=0

    if %k%==0 (net start "automatic updates") else (

    net stop "automatic updates"

    net start "automatic updates")pause

    Coded by EscortMnm from VBS Team: Code Ends

  9. Anonymous users2024-02-01

    Judgment 2 I temporarily wrote you a 3 minutes after the shutdown, if you mean that the user needs to choose to shut down or restart,Just change it yourself,Because that's not the point,Core**"Judge process C: Whether it exists" has been written for you,If the rest is unreasonable,You can change it yourself。

    echo off

    for /f "usebackq delims=" %%i in (`wmic process get executablepath^|findstr /i "c:\\"`) do (

    ping -n 181 >nul 2>&1goto:eof

    shutdown -s -t 180 >nul 2>&1

  10. Anonymous users2024-01-31

    Judging the current date, this is easy to handle. However, if you execute it after the specified date and do not need to schedule the task, it will definitely not work. There's no way you're going to have your compiled exe run this all the time, right?

    Even if it's running all the time, does your computer stay on all the time? Even if it keeps turning on, what if the power suddenly goes out? So without the help of scheduled tasks, it is a bit impossible to achieve such a request.

  11. Anonymous users2024-01-30

    at 12:30 shutdown -s

    ps: can you at 2008-05-01 12:30 shutdown -s ??

    No. Attached: How to use AT.

    time specifies the time at which the command was run.

    every:date[,.Run the command on a specified date every month or week. If the date is omitted, it defaults to running on the day of the month.

    next:date[,.Specifies that the command will run on the next specified date, such as next Thursday. If the date is omitted, it defaults to running on the day of the month.

    Also: What does s mean?

    s is the meaning of shutdown.

Related questions
5 answers2024-05-04

How to simply judge the quality of a power supply.

4 answers2024-05-04

The performance of a computer's graphics card can be judged from the aspects of video memory, bit width, number of stream processors, video memory of the graphics card, and core frequency. >>>More

5 answers2024-05-04

There are probably the following points.

1. The voltage is unstable. >>>More

4 answers2024-05-04

After pressing the power button, the computer does not respond at all. >>>More

11 answers2024-05-04

The general crash can only be restarted,See you say that, it must be the computer hardware is broken,If I'm not wrong,It should be a power supply problem.,You should be able to change the power supply.,Trust me.。 If something goes wrong elsewhere, it won't be a crash, but there is also a possibility that the system is poisoned, or you need to reinstall the system.