0

I am working on product testing automation. After product installation, I need computer still on instead of restart automatically. Anyone can help me how to force computer not to restart using Batch script. Thank so much

Liverpool
  • 131
  • 7
  • 12

2 Answers2

1

Here's a hack that might work. Run it in the background while installing.

:start
shutdown /a 2>NUL
timeout 1
goto start
Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
0

just run

shutdown /a

after the installation.

Netorica
  • 18,523
  • 17
  • 73
  • 108