Save output cmd execution in txt file

CamiCat

Member
Hello friends,

I need to save the output of the cmd.exe execution in a txt file.
How to do it?

I tried with the command line "tree > C:\Desktop.output.txt" but it doesn't write the " >"
How to do that?


Thank you so muhc,
Cami
 

Attachments

  • output cmd.png
    116.7 KB · Views: 21

sivagelli

Well-Known Member
For 'Global Send Keys' action, here is the input-

"tree> C:\Desktop\Output.txt~"

For 'Global Send Key Event' action, here is the input-

"tree <{SHIFT}{>}>{SHIFT} C<{SHIFT}:>{SHIFT}\Desktop\Output.txt{ENTER}"


Post back how it goes.
 

CamiCat

Member
Thank you so much, @sivagelli.
I'm trying, at the beginnning of the process, to check if the process is already running.
I've tried with the action "Process Exists", but I'm inserting the wrong name.
Can you please help me in inserting the correct name?
Thank you,
Cami :)
 

Attachments

  • cmd exe process.png
    144.7 KB · Views: 11

CamiCat

Member
Hello @sivagelli,

one more thing :)
After checking if the process is running, I'm reading if the page of the cmd is attached.
I'm getting the error when passing multiple texts in the "Window Title " argument of the "Attach" activity.
Can you please kindly help me?
Thank you,
Cami
 

Attachments

  • cmd pages window title.png
    109 KB · Views: 8
Top