On Windows, you can assign a keyboard combo to a shortcut. Right-click the shortcut, go to Properties , and click in the Shortcut key box to record your key combo.
Warning: Do not change the icon of the original file's shortcut to the recycle bin or a system drive. Stick to custom or app-provided icons.
# Run the function if __name__ == "__main__": if os.path.exists(my_target): create_desktop_shortcut(my_target, my_name) else: print(f"Error: The target path does not exist: {my_target}")