c Problems in the shutdown procedure!

Updated on technology 2024-05-12
17 answers
  1. Anonymous users2024-02-10

    process myprocess = new process();define a thread instance;

    ";The startup is called""is equivalent to you clicking on the bottom left corner of the computer"Power on"-"Run"- Enter cmd and press Enter, that is, the command prompt interface is launched;

    false;Turn off the use of the shell.

    true;Redirect standard input.

    true;Redirects stdout output.

    true;Redirect error output.

    true;Settings do not display the window.

    This is where the thread starts.

    shutdown -s -t 0");This is equivalent to what you type in the command prompt interface"shutdown -s -t 0", but the window interface is not displayed. "shutdown -s -t 0"It's a computer shutdown command that you can place.

  2. Anonymous users2024-02-09

    The following ** has been compiled and run to confirm (it hurt me to turn off the computer once!) )#include

    #include

    #include

    int main()

    return 0;}

  3. Anonymous users2024-02-08

    The following ** has been compiled and run confirmed.

    #include

    #include

    #include

    int main()

    return 0;}

  4. Anonymous users2024-02-07

    What kind of compilation software do you use upstairs? How to make it? Thank you in advance.

  5. Anonymous users2024-02-06

    There are two requirements for the program.

    The first one is self-starting.

    Then, wait for the start-up oh, five minutes later, the dialog box pops up Clock, and then the dialog box OK to shut down.

  6. Anonymous users2024-02-05

    You can't do this, the actual effect is equivalent to.

    shutdown -s -t a

    try this:

    char szcmd[30];

    sprintf(szcmd,"shutdown -s -t %d",a);

    system(szcmd);

  7. Anonymous users2024-02-04

    You can't do this, the actual effect is equivalent to.

  8. Anonymous users2024-02-03

    The command for calling cmd in C is :system("Command");

    For example: the pause window is system("pause");When you run cmd, you can directly enter pause

    Changing the window color is system("color**); When you run cmd, you directly enter color.

    To shut down immediately, you run cmd and then type shutdown ?You can see the detailed description:

    s Turn off the computer.

    p Shut down the local computer with no timeouts or warnings.

  9. Anonymous users2024-02-02

    Manual shutdown s t 01 shutdown immediately.

  10. Anonymous users2024-02-01

    system("shut。。。

    It's a shutdown statement.

    Delete all statements that follow this line. Don't change someone's registry.

  11. Anonymous users2024-01-31

    After watching it for a long time, I feel right.

  12. Anonymous users2024-01-30

    Ask some computer enthusiasts to help.

  13. Anonymous users2024-01-29

    No matter what kind of computer, cutting off the power directly will definitely shut down.

  14. Anonymous users2024-01-28

    Use the CS architecture to do the control end and the controlled end.

  15. Anonymous users2024-01-27

    Look for the LAN gateway machine in and you don't need to write C.

  16. Anonymous users2024-01-26

    #include

    #include

    #include

    main()

    It's OK, I've debugged it!

  17. Anonymous users2024-01-25

    In the simple case of using your own computer to control someone else's computer, you must connect the two computers with something, and then supplement it with the corresponding software. This is generally used for teaching.

    If you want to operate someone else's computer, you can directly click Shut Down, or schedule a shutdown.

    There are two kinds of scheduled shutdown, one is the program type, you can open the run or dos window, type"Leakage tsshutdn", enter, or from the Internet** corresponding software, shut down regularly.

    One is the task type, this computer generally comes with, but it is more troublesome, you enter the control panel, enter the System tab, and then enter the Management Tools tab, which has a scheduled task, and you can also set a scheduled shutdown.

Related questions
7 answers2024-05-12

In the C language. An integer constant starting with 0 refers to octal. 027 is 2x8+7, so the answer is c.

7 answers2024-05-12

Use cmd's timer to shut down.

private void button1_click(object sender, eventargs e) >>>More

7 answers2024-05-12

In the whole main function, only this one variable, whether it is the first for or the second for, is the same i, the second for will have i=-1, in the case of i= -1, and printf("%d ",a[i]);Statement. So fear not! When there is no second for the case: >>>More

5 answers2024-05-12

Try to be as concise and easy to understand as possible, and you will understand it when you use it more. >>>More

9 answers2024-05-12

First of all, there is a difference in the definition of void delay1ms(), and the call is as follows: >>>More