When you do Copy
(CTRL+C) on a file, then in some programs (example: it works in the Windows Explorer address bar, also with Everything indexing software), when doing Paste (CTRL+V), the filename or directory name is pasted like text, like this: "d:\test\hello.txt"
.
I tried this:
- CTRL+C on a file or folder in Windows Explorer
Run:
import win32clipboard win32clipboard.OpenClipboard() data = win32clipboard.GetClipboardData() win32clipboard.CloseClipboard() print data
But I get this error:
TypeError: Specified clipboard format is not available
Question: how to retrieve the filename of a file that has been "copied" (CTRL+C) in the Windows Explorer?
Mklink here!
:) – Arv