Problem:
While running the batch file, it goes into infinite loop
Code:
shutdown -s -t 050
Output:
Output when i run in normal batch file:
Output when i run in admin batch file:
Question: Now I wonder why this happens, and want to know how to run shutdown command normally from batch file, if not like this ?
You called the batch file shutdown
Use a name that is not a system command or internal command.