RaSLa/shortcut.py
2024-02-19 21:07:42 +01:00

12 lines
219 B
Python

import os
import random
files = os.listdir()
shortcuts = []
for file in files:
if file.endswith(".lnk") or file.endswith(".url"):
shortcuts.append(file)
file = random.choice(shortcuts)
os.startfile(file)