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 scripts to shutdown your computer after 3 seconds for different operating systems:
Windows (Batch file - save as shutdown.bat):
batch@echo off echo Computer will shutdown in 3 seconds... timeout /t 3 /nobreak shutdown /s /f /t 0Windows (PowerShell - save as shutdown.ps1):
powershellWrite-Host "Computer will shutdown in 3 seconds..." Start-Sleep -Seconds 3 Stop-Computer -Force
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.