आप Swiss File Knife (SFK) की कोशिश कर सकते हैं:
sfk toclip
Copy stdin to clipboard as plain text.
type test.txt | sfk toclip
Copies the content of ASCII file test.txt into the clipboard.
sfk list | sfk toclip
Copies a file listing of the current dir into the clipboard.
sfk fromclip [-wait] [-clear]
Dump plain text content from the clipboard to the terminal.
-wait : block until plain text is available.
-clear: empty the clipboard after reading it.
उदाहरण: बैकस्लैश बारी में फ़ॉरवर्ड स्लैश। कल्पना कीजिए कि आप Notepad भीतर निम्न पाठ खुला है:
foo/bar/systems/alpha1.cpp
foo/bar/systems/alpha2.cpp
foo/bar/systems/beta1.cpp
और किसी कारण से आप इस तरह एक प्रारूप में पहली पंक्ति की जरूरत है:
:
foo\bar\systems\alpha1.cpp
तो फिर तुम इसे इस तरह से कर सकते हैं
- SHIFT + CURSOR कुंजी का उपयोग करके पहली पंक्ति को चिह्नित करें।
- प्रेस Ctrl +सी या Ctrl +सम्मिलित क्लिपबोर्ड
में कॉपी करने के लिए Windows कमांड लाइन पर, यह कमांड चलाएँ (उदाहरण के लिए, एक बैच फ़ाइल से):
sfk fromclip +filter -rep x/x\x +toclip
संपादक में वापस, प्रेस Ctrl +वी या शिफ्ट + क्लिपबोर्ड से परिणाम चिपकाएं, डालें।
जैसा कि आप देखते हैं, रेखा "foo \ bar \ system \ alpha1.cpp" में बदल दी गई है।
यहां एक नज़र डालें http://serverfault.com/questions/162273/how-to-send-a-file-into-clipboard-from-command-line-cli – cb0
@ cb0 कृपया [टिप्पणी] देखें (http://serverfault.com/a/162275) आपके द्वारा लिंक किए गए थ्रेड पर। – Endoro
संभावित डुप्लिकेट [क्या प्रोग्राम करने के लिए प्रोग्राम करने के लिए एक विंडोज एपीआई है एक्सप्लोरर के माध्यम से फ़ाइलों को काट/कॉपी/पेस्ट करें?] (Http://stackoverflow.com/questions/9845056/is-there-a-windows-api-to-programmatically-cut -कोपी-पेस्ट-फाइल-थ्रू-एक्सप्लोरर) – Synetech