Simple and working function to copy any file to clipboard using Python
def copyToClipboard(file_path):
import os
fullpath = "C:\\Users\\Lenovo\\Desktop\\Automations\\" + file_path
os.system(f'powershell Set-Clipboard -Path {fullpath}')
def copyToClipboard(file_path):
Comments
Post a Comment