ExamV1

Harmless Discord Closer Loop

Sep 27th, 2021 (edited)
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.85 KB | None | 0 0
  1. #simple python code which will close all instances of discord and attempt to loop open the exe file, an easy fix is to close in task manager or pc restart.
  2.  
  3. #here is a download to the .py converted to an exe for this code to work this exe must be located in the Downloads section.
  4. #https://www.sendspace.com/file/d4d11d
  5.  
  6. import os
  7. import subprocess
  8. number = 2
  9. while number < 5 :
  10.     print("Made by Exam")
  11.     print("Made by Exam")
  12.     print("Made by Exam")
  13.     os.system("taskkill /im DiscordCanary.exe /f")
  14.     os.system("taskkill /im Discord.exe /f")
  15.     os.system("taskkill /im BetterDiscord.exe /f")
  16.     os.system("taskkill /im Lightcord.exe /f")
  17.     os.system("taskkill /im BetterDiscord-Windows.exe /f")
  18.     os.chdir(r"C:\Users\User\Downloads")
  19.     os.chdir(r"C:\Users\User\Downloads\Programs")
  20.     subprocess.Popen("TLOP.exe")
  21. number = number+1
Add Comment
Please, Sign In to add comment