Done Mutiple-line comamnd line input?

In TC Support, Jang wrote

---Quote---
Also I have not found any way to split the command group `set
inbox_directory=%_foldername & set inbox_file=%_folderfile1 & Call
"C:\Users\Gappe\Documents\TCC batfiles\Subtest.bat"`into several
lines amongst other for easier readability.
---End Quote---

And Rex answered:

---Quote---
Use a batch file!
---End Quote---

Hmmm, wouldn't it be possible to tell TC, if the last character on the
command line is a "&" or a "%+", to stay execution when receiving an
"Enter" and append the next line, so making true multiple line
commands possible?

I too feel this would be preferable to long lines with interspersed
"&".

Best regards,

* Klaus Meinhard *
<www.4dos.info>
 
May 20, 2008
11,415
99
Syracuse, NY, USA
On Fri, 10 Jun 2011 03:45:38 -0400, K_Meinhard <>
wrote:

|Hmmm, wouldn't it be possible to tell TC, if the last character on the
|command line is a "&" or a "%+", to stay execution when receiving an
|"Enter" and append the next line, so making true multiple line
|commands possible?
|
|I too feel this would be preferable to long lines with interspersed
|"&".

Code:
v:\> echo 1 &^
More? echo 2 &^
More? echo 3
1
2
3

v:\> do i=1 to 2 ( echo 1 &^
More? echo 2 )
1
2
1
2

v:\> (echo foo
More? echo bar)
foo
bar
 
May 20, 2008
11,415
99
Syracuse, NY, USA
Rex, can the user redefine the command line "More?" prompt? IIRC some UNIX shells allow that.

On Fri, 10 Jun 2011 03:45:38 -0400, K_Meinhard <>
wrote:

|Hmmm, wouldn't it be possible to tell TC, if the last character on the
|command line is a "&" or a "%+", to stay execution when receiving an
|"Enter" and append the next line, so making true multiple line
|commands possible?
|
|I too feel this would be preferable to long lines with interspersed
|"&".

Code:
v:\> echo 1 &^
More? echo 2 &^
More? echo 3
1
2
3

v:\> do i=1 to 2 ( echo 1 &^
More? echo 2 )
1
2
1
2

v:\> (echo foo
More? echo bar)
foo
bar
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
> Hmmm, wouldn't it be possible to tell TC, if the last character on the
> command line is a "&" or a "%+", to stay execution when receiving an
> "Enter" and append the next line, so making true multiple line
> commands possible?

I don't see the point, since TCC already does that if the last character on
the line is an escape character (^).
 
Similar threads
Thread starter Title Forum Replies Date
vefatica File name completion at the beginning of the command line Suggestions 6
D Done BDEBUGGER: add cmdline option to set a breakpoint at a given line Suggestions 0
D Done TCEdit and BDEBUGGER: add cmdline switch to jump to given line Suggestions 2
vefatica Done DIR /P ... scroll by one line Suggestions 4
x13 Declined Multi-line FUNCTIONs Suggestions 14
R ffind /= and command line Suggestions 0
R Done Command History Window: select more than one line. Suggestions 0
Charles Dye Done TCEDIT: Command-line option to print files Suggestions 2
R Done Add Libraries and Multi-line In-Memory functions to Features List on Website Suggestions 1
vefatica Declined @@key alias at beginning of partial command line Suggestions 10
vefatica Declined Multi-line UDFs Suggestions 11
M Declined Command line support for Virustotal Suggestions 0
R Done Multi-line in-memory functions Suggestions 4
rconn Command Line constructor custom DIALOGs for batch files Suggestions 0
rconn A Command-line comparison Suggestions 0
rconn Done database access from command line Suggestions 0
rconn Declined Execute a screen line Suggestions 0
Peter Bratton Done Keep IDE active line centered Suggestions 0
J Done program elevation from command line Suggestions 0
W Done Add an option to control command line parsing Suggestions 7

Similar threads