'Can I use Powershell to copy text from another window?
I have OneDrive files which I can access through Microsoft Word or the browser, but not via a script. I need to pass the contents of one of these files as a variable for something later down the line in my script.
Googling this gives me lots of links explaining how to copy something from the Powershell window and paste it, which isn't what I want to do.
I need Powershell to open a Microsoft Word file, copy the text inside the file, and save the result as a text file. Is there any way to do that in Windows 10 with Powershell 5? I can't install any software.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
