Welcome!

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

SignUp Now!

Take Command v10 build 32 uploaded

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
 
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
 
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,
 
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
 
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
>
>
>
>
 
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
 
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.
 
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

Back
Top