Jan-11-2020, 10:08 PM
I can do a test.
# drop.py import sys drop_file = sys.argv[1] print(f'You dropped {drop_file}') with open(drop_file) as f: print(f.read()) input('Press <Enter> to exit')Make a
drop.bat
file to drop to as it has all permission for drag drop,.py
can be blocked in Registry."C:\python37\python.exe" drop.py %*Build with Pyinstaller.
pyinstaller --onefile --add-data drop.bat;. drop.pyNow can drop files to
drop.exe
,eg it will work for txt,csv,html... ect.