Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shutdown via batch file into infinite loop?

Problem:

While running the batch file, it goes into infinite loop

Code:

shutdown -s -t 050

Output:

Ran the batch file enter image description here

Output when i run in normal batch file: enter image description here

Output when i run in admin batch file:

enter image description here

Question: Now I wonder why this happens, and want to know how to run shutdown command normally from batch file, if not like this ?

like image 612
frunkad Avatar asked Dec 09 '22 06:12

frunkad


1 Answers

You called the batch file shutdown

Use a name that is not a system command or internal command.

like image 117
foxidrive Avatar answered Dec 30 '22 15:12

foxidrive