Take Command v10 build 32 uploaded

May 20, 2008
11,292
95
Syracuse, NY, USA
and a fix for DO /D.

Thanks. The start dir is now honored fully. But if a relative (to _CWD) path is given, no recursion takes place (previously it began, then got lost). With a FQ path it works as expected. See the two examples below.

Relative path:

v:\> type dosdtest.btm
md dosd dosd\1 dosd\2
touch /c dosd\0.txt dosd\1\1.txt dosd\2\2.txt
do file in /d"dosd" /s *.txt
echo %@full[%file]
enddo


v:\> dosdtest.btm
2009-01-13 10:20:36.938 V:\dosd\0.txt
2009-01-13 10:20:36.938 V:\dosd\1\1.txt
2009-01-13 10:20:36.938 V:\dosd\2\2.txt
V:\dosd\0.txt

Fully-qualified path:

v:\> type dosdtest.btm
md dosd dosd\1 dosd\2
touch /c dosd\0.txt dosd\1\1.txt dosd\2\2.txt
do file in /d"v:\dosd" /s *.txt
echo %@full[%file]
enddo


v:\> dosdtest.btm
2009-01-13 10:23:06.781 V:\dosd\0.txt
2009-01-13 10:23:06.781 V:\dosd\1\1.txt
2009-01-13 10:23:06.781 V:\dosd\2\2.txt
V:\dosd\0.txt
V:\dosd\1\1.txt
V:\dosd\2\2.txt
 
May 20, 2008
11,292
95
Syracuse, NY, USA
Here's a simpler indication of how it works (and are you going to update v9?).

v:\> type dosdtest.btm
do file in /d"%1" /s *.txt
echo %@full[%file]
enddo


v:\> dosdtest.btm dosd
V:\dosd\0.txt

v:\> dosdtest.btm \dosd
V:\dosd\0.txt
V:\dosd\1\1.txt
V:\dosd\2\2.txt

v:\> dosdtest.btm v:\dosd
V:\dosd\0.txt
V:\dosd\1\1.txt
V:\dosd\2\2.txt
 
Jun 20, 2008
39
0
Obsolete syntax in the @select statement?

I looked in the helpfile and that didn't change.

Please be so kind to inform me about the new syntax.

Kind regards,
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
Arjan Feddema wrote:

> Obsolete syntax in the @select statement?
>
> I looked in the helpfile and that didn't change.
>
> Please be so kind to inform me about the new syntax.

The help for @SELECT *did* change in build 32.

Since all popup windows are GUI (since v9), the row/column positioning
syntax isn't either accurate or relevant. I made a change to allow the
old row/column format if the width is < 150, but it's not recommended or
likely to be supported in the future.

Rex Conn
JP Software
 
Jun 20, 2008
39
0
Sound resaonable.

Could you give a example what the new format is.
This with regarding with the changing windows size.
I mean if this doesn't work in the new versions:

function sel=`%@select[%1,3, %@eval[(%_columns \ 2) + 2 ],%@eval[%_rows - 2], %@eval[%columns -2],%2]`

What is the best way to achieve the function above with the "pixel format"

Kind regards,

Arjan



*********** REPLY SEPARATOR ***********

On 14-1-2009 at 7:44 JP Software Forumsrconn wrote:


>Arjan Feddema wrote:
>
>
>---Quote---
>> Obsolete syntax in the @select statement?
>>
>> I looked in the helpfile and that didn't change.
>>
>> Please be so kind to inform me about the new syntax.
>---End Quote---
>The help for @SELECT *did* change in build 32.
>
>Since all popup windows are GUI (since v9), the row/column positioning
>syntax isn't either accurate or relevant. I made a change to allow the
>old row/column format if the width is < 150, but it's not recommended or
>likely to be supported in the future.
>
>Rex Conn
>JP Software
>
>
>
>
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
vefatica wrote:

> Here's a simpler indication of how it works (and are you going to update v9?).
>
> v:\> type dosdtest.btm
> do file in /d"%1" /s *.txt
> echo %@full[%file]
> enddo
>
>
> v:\> dosdtest.btm dosd
> V:\dosd\0.txt
>
> v:\> dosdtest.btm \dosd
> V:\dosd\0.txt
> V:\dosd\1\1.txt
> V:\dosd\2\2.txt
>
> v:\> dosdtest.btm v:\dosd
> V:\dosd\0.txt
> V:\dosd\1\1.txt
> V:\dosd\2\2.txt

Don't use relative paths when the argument is going to be reinterpreted
in each subdirectory!

Rex Conn
JP Software
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
Sound resaonable.

Could you give a example what the new format is.
This with regarding with the changing windows size.
I mean if this doesn't work in the new versions:

function sel=`%@select[%1,3, %@eval[(%_columns \ 2) + 2 ],%@eval[%_rows - 2], %@eval[%columns -2],%2]`

What is the best way to achieve the function above with the "pixel format"

The size of the popup windows has nothing to do with the size of the console window. Just pick the size you want for the popup and you'll always get that size.
 
Jun 20, 2008
39
0
Ok, I see,

How about DRAWHLINE, DRAWVLINE and DRAWBOX?

Arjan



*********** REPLY SEPARATOR ***********

On 15-1-2009 at 7:35 JP Software Forumsrconn wrote:


>---Quote (Originally by Arjan Feddema)---
>Sound resaonable.
>
>Could you give a example what the new format is.
>This with regarding with the changing windows size.
>I mean if this doesn't work in the new versions:
>
>function sel=`%@select[%1,3, %@eval[(%_columns \ 2) + 2 ],%@eval[%_rows -
>2], %@eval[%columns -2],%2]`
>
>What is the best way to achieve the function above with the "pixel format"
>---End Quote---
>
>The size of the popup windows has nothing to do with the size of the
>console window. Just pick the size you want for the popup and you'll
>always get that size.
>
>
>
>
 
Similar threads
Thread starter Title Forum Replies Date
rconn Take Command/LE and TCC/LE v10 build 57 uploaded Support 0
rconn Take Command v10 build 57 uploaded Support 0
rconn Take Command/LE v10 build 56 uploaded Support 3
rconn Take Command v10 build 56 uploaded Support 11
rconn Take Command v10 build 49 uploaded Support 0
rconn Take Command / TCMD/LE / TCC/LE v10 release build 48 uploaded Support 2
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 47 uploaded Support 5
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 46 uploaded Support 9
rconn Take Command v10 beta build 44 uploaded Support 1
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 43 uploaded Support 9
rconn Take Command v10 beta build 41 uploaded Support 6
rconn Take Command v10 beta build 40 uploaded Support 3
rconn Take Command v10 beta build 39 uploaded Support 18
rconn Take Command v10 beta build 38 uploaded Support 0
rconn Take Command v10 beta build 37 uploaded Support 0
rconn Take Command v10 beta build 36 uploaded Support 0
rconn Take Command v10 beta build 35 uploaded Support 0
rconn Take Command v10 beta build 34 uploaded Support 23
rconn Take Command v10 beta build 33 uploaded Support 9
rconn Take Command v10 build 31 uploaded Support 4
dcantor Take Command V10 @WINPID suggestion. Support 2
rconn Take Command v10 Public Beta Available! Support 0
T VIEW only works from command line Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 7
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10

Similar threads