Last active
January 21, 2024 12:13
-
-
Save thefastfish/21b2daad614d3c2c6aff117c61fddcae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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