i am trying to create a batch file that remote shutdowns a computer with as few lines of code as possible, why? cause why the hell not. anyways, this is what i have:
@Echo off
Echo -S (Shuts down computer) -R (Restarts computer)
Set /p option="Enter option here: "
Set /p IP="Enter IP here: "
Set /p Timer="Enter the amount of secounds before shutdown here: "
set /p comment="Enter a comment here (max amount of characters are 512): "
Shutdown -%option% -m \\%IP% -t %Timer% -c "%comment%"'
Whenever i run it, it goes perfeclty to the end, but when i get to the last line, it simply restarts, i honestly have no idea why it would do this..... Any tips?
@Echo off
Echo -S (Shuts down computer) -R (Restarts computer)
Set /p option="Enter option here: "
Set /p IP="Enter IP here: "
Set /p Timer="Enter the amount of secounds before shutdown here: "
set /p comment="Enter a comment here (max amount of characters are 512): "
Shutdown -%option% -m \\%IP% -t %Timer% -c "%comment%"'
Whenever i run it, it goes perfeclty to the end, but when i get to the last line, it simply restarts, i honestly have no idea why it would do this..... Any tips?