.bat file keeps looping despite what I try

Viewed 23

I have a .bat file named "gpo_update.bat" When I run the file it keeps looping

Below is the code

@ECHO OFF
ECHO Your system is now updating, please do not close this program
gpupdate
exit

This is the output

Your system is now updating, please do not close this program
Your system is now updating, please do not close this program
Your system is now updating, please do not close this program
Your system is now updating, please do not close this program

"It keeps repeating this till I close the program"

What I have done to try to fix this. The file was named "gpupdate.bat" then changed it to "gpo_update.bat"

I added sections to the code and had "goto"

Thanks for your help

0 Answers
Related