How to do it in Windows 10
Windows 10: Clip
C:\>clip /?
CLIP
Description:
Redirects output of command line tools to the Windows clipboard.
This text output can then be pasted into other programs.
Parameter List:
/? Displays this help message.
Examples:
DIR | CLIP Places a copy of the current directory
listing into the Windows clipboard.
CLIP < README.TXT Places a copy of the text from readme.txt
on to the Windows clipboard.
in this case you could echo %CD%, or use dir /b as Salmon Trout indicated on the file, and redirect it to CLIP to copy the current directory to the clipboard.
Windows 3.11 has no documented user-accessible way of copying data from a command prompt window via a command to the Windows Clipboard (Of course, you can use the control menu to mark and copy text shown in the command prompt window). Programs that are aware of Windows can detect it and will be able to copy and paste to and from the Windows clipboard though.
MS-DOS itself has no concept of a clipboard- only applications do.