flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > Windows bat save clip text to file. |
Author |
|
macomics 04 Jun 2022, 16:30
There are reverse examples of working with the clipboard in powershell, but something was not found in Windows Batch. Maybe you'll have better luck.
Code: echo 1.txt > a.txt |
|||
04 Jun 2022, 16:30 |
|
revolution 04 Jun 2022, 16:36
You want something like:
Code: paste > a.txt |
|||
04 Jun 2022, 16:36 |
|
macomics 04 Jun 2022, 16:39
Code: echo 1.txt | clip powershell "[Windows.Clipboard]::GetText()" > a.txt |
|||
04 Jun 2022, 16:39 |
|
Roman 04 Jun 2022, 19:11
Write error in my file:
Unable to find type [Windows.Clipboard]. At line:1 char:1 + [Windows.Clipboard]::GetText() + CategoryInfo : InvalidOperation: (Windows.Clipboard:TypeName) [], RuntimeException + FullyQualifiedErrorId : TypeNotFound Last edited by Roman on 04 Jun 2022, 23:44; edited 1 time in total |
|||
04 Jun 2022, 19:11 |
|
Roman 04 Jun 2022, 19:12
Fine work this
Code: echo 1.txt|clip powershell gcb >>1.txt |
|||
04 Jun 2022, 19:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.