ascii | ascii -dos | calc | cmd | data | env | fromclip | jsonform | license | number | prompt | random | ruler | spell | status | toclip | update | version | video | view | xmlform | Команда: toclip get text from the windows clipboard, or put text into clipboardfrom within batch files using sfk fromclip and toclip on the command line. sfk toclip copy stdin to clipboard as plain text. type test.txt | sfk toclip copies the content of ASCII file test.txt into clipboard. sfk list | sfk toclip copies a file listing of the current dir into clipboard. sfk fromclip [-wait] [-clear] dump plain text content from clipboard to terminal. -wait : block until plain text is available. -clear: empty the clipboard after reading it. Example: turn backslashes into forward slashes. Imagine you have the following text open within notepad: foo/bar/systems/alpha1.cpp foo/bar/systems/alpha2.cpp foo/bar/systems/beta1.cpp and for some reason you need the first line in a format like this: foo\bar\systems\alpha1.cpp then you may do it this way: 1. mark the first line using SHIFT + CURSOR keys. 2. press CTRL+C or CTRL+INSERT to copy it into clipboard 3. on the windows command line, run this command (e.g. from a batch): sfk fromclip +filter -rep x/x\x +toclip 4. back in the editor, press CTRL+V or SHIFT+INSERT, pasting the result from the clipboard. As you see, the line changed into "foo\bar\systems\alpha1.cpp". Example: reformat a spreadsheet line for further processing. Imagine you have the following Excel file open: |
![]() |