Ctrl+v not working in notepad

CamiCat

Member
Hell friends,
I'm running some lines of code in cmd.
I'm trying to copy the output in notepad file, but the "Ctrl+A" combined with GetClipoard doesn't give the expected result.
Can you please help me?
I've attached the result of the GetClipboard().
Camilla :)
 

Attachments

  • ctrl+a not working.png
    101.8 KB · Views: 16

jursky

New Member
Here https://www.laptopmag.com/articles/how-to-windows-10-command-prompt-copy are described some steps I did not know about which will allow you to use ctrl+c/v directly in CMD window.

Alternatively you can redirect output of cmd window into a file by specifying the " > c:\some_file.txt" after your CMD command.
So in your case I would use Utility Env - Start Process: as Application you'd specify "cmd" and as Arguments you'd specify "/c tree C:\ > C:\some_file.txt"
View attachment cmd tree output.jpg
Then with Utility - File Management you can use "Read all text" or "Read all lines" for reading the file for its text, loading it into blueprism's data-type variable.
 

CamiCat

Member
Thank you so so much @jursky.
I'll try the approach you suggested me of using Utility Env - Start Process: and Utility - File Management with "Read all text" or "Read all lines".
I'll post back the result.
Thank you so much,
cami :)
 
Top