Use the PowerShell Copy-Item cmdlet (minus the GUI part).
How to copy files in cmd or powershell like in file explorer
傲天 吴
20
Reputation points
What I want is not to read the entire contents of the file, but to copy the file just like pressing Ctrl+C in file explorer. After copying the file, I will press Ctrl+V to paste it into the chat software dialog box.
I want to achieve it through PowerShell or cmd, and it would be even better if it can be implemented in Python.
If anyone knows the answer to this question, please let me know. Thank you very much.
Windows for business Windows Server User experience PowerShell
8,330 questions