Search found 3 matches
- 23 Aug 2023 02:47
- Forum: DOS Batch Forum
- Topic: avoid trailing space when piping to CLIP [SOLVED]
- Replies: 6
- Views: 8622
Re: avoid trailing space when piping to CLIP
I think, corrected version of my command would be with quotes just after the equal sign rather than before. SET/P="TEXT"<NUL|CLIP As for the space origin, previously I thought that there is no difference between redirection with ' > ' and piping with ' | ', but now I reconsider that. Thanks for your...
- 23 Aug 2023 01:35
- Forum: DOS Batch Forum
- Topic: avoid trailing space when piping to CLIP [SOLVED]
- Replies: 6
- Views: 8622
Re: avoid trailing space when piping to CLIP
Magic! But how? I can't understand the difference. In my example there is NO ANY space, so I thought that the stray space is generated by CLIP, but not by my command. Could anybody explain to me where the stray space in my example comes from?
- 22 Aug 2023 23:05
- Forum: DOS Batch Forum
- Topic: avoid trailing space when piping to CLIP [SOLVED]
- Replies: 6
- Views: 8622
avoid trailing space when piping to CLIP [SOLVED]
Hi guys. Recently faced an issue with CLIP in Windows 7. When trying to send to it a text line without newline at the end, it appends the line with one space. How it possible to store in the clipboard just a line I want, without that stray space? SET/P=TEXT<NUL|CLIP Execute this line, and you'll get...