Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Mutiple-line comamnd line input?

May
397
4
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>
 
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
 
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
 
Rex, can the user redefine the command line "More?" prompt? IIRC some UNIX shells allow that.

It's the PROMPT2 environment variable. (Which ought to be listed on the System Variables help page, but isn't.)
 

Similar threads

Back
Top