Skip to content

Instantly share code, notes, and snippets.

@thefastfish
Last active January 21, 2024 12:13
Show Gist options
  • Save thefastfish/21b2daad614d3c2c6aff117c61fddcae to your computer and use it in GitHub Desktop.
Save thefastfish/21b2daad614d3c2c6aff117c61fddcae to your computer and use it in GitHub Desktop.
import os
import time
def remove_file(file_path):
if os.path.exists(file_path):
try:
os.remove(file_path)
except Exception as e:
pass
home_directory = os.path.expanduser("~")
file_relative_path = r"Desktop\Riot Client.lnk"
file_path_to_remove = os.path.join(home_directory, file_relative_path)
while True:
remove_file(file_path_to_remove)
time.sleep(60)
@thefastfish
Copy link
Author

thefastfish commented Jan 21, 2024

compiled exe file (windows defender will not like this its easier to compile it your self):

https://drive.google.com/file/d/162DWORdq98Rf7tRWgzFFUFNesB4qd6qS/view?usp=drive_link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment