Pietro122
Pietro122

Reputation: 27

Block Windows Shutdown with Batch

I wanted to ask if it was possible to block or lengthen the windows shutdown process after starting it through a batch file. This is my code:

@echo off
start shutdown.exe -s -t 1800

Thanks and excuse me for my bad english but I'm italian :)

Upvotes: 1

Views: 148

Answers (1)

DDS
DDS

Reputation: 2478

Think shutdown /a will do what you ask. I suggest you to read the man of the commend: just type it in a console and see what option is good for you.

Then to 'delay' the shutdown you can use the /t parameter and set a personalized delay (30" is default)

IT: Prova con il comando scritto sopra, inoltre ti consiglio di leggere la descrizione di shutdown in cui ti spiega tutte le opzioni: apri un terminale e digiti 'shutdown' per avere la lista dei possibili argomenti. il parametro /t ti consente di specificare un ritardo alla chiamata di shutdown.

Upvotes: 1

Related Questions