

InterviewSolution
Saved Bookmarks
1. |
Solve : How to copy path to folder/file by command line?? |
Answer» <html><body><p>Hi!<br/><br/>I need to copy path of current folder and/or file in that folder by command line.<br/><br/>How to do it in Windows 10, Windows 3.11 and DOS?<br/><br/>Thank you for each help, reply, suggestion or comment.<br/><br/>Mirohere's Windows XP onwards... highlight what you want to copy and press <a href="https://interviewquestions.tuteehub.com/tag/enter-446119" style="font-weight:bold;" target="_blank" title="Click to know more about ENTER">ENTER</a>. It's in the clipboard.<br/><br/><br/>This works not.<br/>Output is always to named file.<br/><br/>For clipboard exist command CLIP - I tried to get help, but error is that command not exist. I know that can't to be <a href="https://interviewquestions.tuteehub.com/tag/used-763273" style="font-weight:bold;" target="_blank" title="Click to know more about USED">USED</a> without parameters - where to get syntax?<br/>Also - exist CLIP in MS-DOS 6.22 ?<br/><br/>And is possible to get path from any variable? Or other way?<br/><br/>Thank you.<br/>Miro....How to do it in Windows 10<br/><br/>Windows 10: Clip<br/><br/> Code: <a>[Select]</a>C:\>clip /?<br/><br/>CLIP<br/><br/>Description:<br/> Redirects output of command line tools to the Windows clipboard.<br/> This text output can then be pasted into other programs.<br/><br/>Parameter List:<br/> /? Displays this help message.<br/><br/>Examples:<br/> DIR | CLIP Places a copy of the current directory<br/> listing into the Windows clipboard.<br/><br/> CLIP < README.TXT Places a copy of the text from readme.txt<br/> on to the Windows clipboard.<br/><br/>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.<br/><br/>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 <a href="https://interviewquestions.tuteehub.com/tag/aware-889709" style="font-weight:bold;" target="_blank" title="Click to know more about AWARE">AWARE</a> of Windows can detect it and will be able to copy and paste to and from the Windows clipboard though.<br/><br/><br/>MS-DOS itself has no <a href="https://interviewquestions.tuteehub.com/tag/concept-769221" style="font-weight:bold;" target="_blank" title="Click to know more about CONCEPT">CONCEPT</a> of a clipboard- only applications do.Ok, thank you!<br/><br/>Now I can use it the way I wanted.<br/><br/>DOS can have replaced clipboard by file content - but only text.<br/><br/>Miro</p></body></html> | |