code a script to shutdown my computer after 3 second of running it
- User
code a script to shutdown my computer after 3 second of running it
- Assistant
Here are a few simple “shutdown after 3 seconds” scripts for different operating systems. Make sure you save everything before you run them!
Windows (Batch file)
-
Open Notepad, paste in:
@echo off echo Your PC will shut down in 3 seconds... timeout /t 3 /nobreak >nul shutdown /s /f /t 0 -
Save it as
shutdown3s.bat(set “Save as type” to ).
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.