Documentation "Copy+Paste+run" question

rps

Jul 6, 2008
436
6
Recalling a command from History: Dir displayed as expected.
Code:
v22.00.26_$*dir /Nfv /odr function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinpu
t.sav

 Directory of  D:\tcmd v22\function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinp
ut.sav

12/04/2017  14:46               2  JPcommandInput.sav
12/04/2017   1:26         210,628  history.sav
12/04/2017   1:26           5,374  function.sav
12/04/2017   1:26             212  dirhistory.sav
12/04/2017   1:26          74,648  alias.sav
             290,864 bytes in 5 files and 0 dirs    307,200 bytes allocated
Using the command Input window "Copy+Paste" in the context widown; As expected there is a wrap at the screen boundary and the whole DIR command is executed correctly
Code:
v22.00.26_$*dir /Nfv /odr function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinpu
t.sav <enter>
 Directory of  D:\tcmd v22\function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinp
ut.sav

12/04/2017  14:46               2  JPcommandInput.sav
12/04/2017   1:26         210,628  history.sav
12/04/2017   1:26           5,374  function.sav
12/04/2017   1:26             212  dirhistory.sav
12/04/2017   1:26          74,648  alias.sav
             290,864 bytes in 5 files and 0 dirs    307,200 bytes allocated
If I use the command Input window "Copy+Paste+run"
Code:
v22.00.26_$*dir /Nfv /odr function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinpu


 Directory of  D:\tcmd v22\function.sav;history.sav;alias.sav;dirhistory.sav;jpcommandinp
u

12/04/2017   1:26         210,628  history.sav
12/04/2017   1:26           5,374  function.sav
12/04/2017   1:26             212  dirhistory.sav
12/04/2017   1:26          74,648  alias.sav
             290,862 bytes in 4 files and 0 dirs    303,104 bytes allocated

v22.00.26_$t.sav
The jpcommandinput.sav is cut off, resulting in an incomplete DIR display. If the TCMD window is wide enough for the whole command to fit without wrapping, the "Copy+Paste+run" works the same as a "Copy+Paste" <enter>. Shouldn't they work the same despite the screen width?
Given this is WAD it would be good to add a caution to the Help.

v22.00.26_$ver
TCC 22.00.26 x64 Windows 10 [Version 10.0.15063]
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
WAD.

Copy+paste+run appends a CR/LF to the end of each marked line, so you can copy & execute more than a single line.
However, there isn't any end of line marker in a Windows console. So it is impossible to differentiate between a line that is exactly the max column width, and a line that wrapped to the next row.
 

rps

Jul 6, 2008
436
6
Thanks. Seems like a great excuse for buying a bigger monitor so the lines don't wrap. :happy:

Didn't know it was possible to copy & execute more than one line.
 
Similar threads
Thread starter Title Forum Replies Date
C forum Posting Question... Support 3
C question re: Move Support 3
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
Peter Murschall Documentation Question to %@PSHELL Support 4
Fross Tab Question Support 6
Fross Quick Function Question Support 17
Dick Johnson Question about the Touch command Support 0
vefatica SFTP question Support 17
vefatica Question about IPWorks Support 0
C How to? SHORTCUT question..... Support 6
vefatica TPIPE, crash and question Support 1
C Question / Suggestion Support 1
MickeyF Another TPIPE question Support 6
vefatica Another @EVERYTHING question Support 4
mikea How to? %@everything[] question Support 10
A License Question for Single User Support 5
Jay Sage Help Correction (and Related Question) Support 0
S Elapsed time in TCC prompt question Support 0
H command line parsing question Support 5
C Forum question Support 2
B Newbie here, I have a question. Support 4
J Dumb Question ... Support 4
Timothy Byrd Updating from TC 9 to TC 17 - TCTOOLBAR question Support 2
M A possibly stupid question about the "del" command... Support 7
M A just out of curiosity question re @DiskTotal Support 4
Fross Status Bar Time Question Support 1
A Stupid, obvious question - launch a BAT with TC Support 10
C How to? GLOBAL question Support 5
vefatica OT: VisualStudio question Support 1
vefatica Wildcard question Support 4
Dan Glynhampton v15 installer question Support 2
C Move question with Encrypted file... Support 6
M Maybe Maybe I'm being stupid (again), but a simple question... Support 4
C Message Board question Support 1
James Miller How to? filename completion question Support 1
C coding question Support 3
M A just-out-of-curiosity question because it's ... Support 6
Frank question to FOLDERMONITOR Support 14
C Dumb titleprompt question Support 4
M Upgrade Question Support 2
S option /u question Support 19
M How to? A probably stupid question re "@Files" and Include Lists... Support 2
M Just an out-of-curiosity question re. "Do ... /P ..." Support 31
M How to? An admittedly somewhat silly question regarding elevation... Support 2
M Just an out-of-curiosity question the List command vs. the @Lines function... Support 13
M PDir format question... Support 3
M A question about file compression that is just out of curiosity... Support 2
M How to? A very simple question re. the current line number in a batch file... Support 2
M A purely out-of-curiosity question about @DriveType and @DriveTypeEx Support 2
vefatica SET question Support 16

Similar threads