Welcome!

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

SignUp Now!

Query if Monitor is off?

On Thu, 02 Jun 2011 08:26:04 -0400, rconn <> wrote:

|---Quote (Originally by Kachupp)---
|What "I'D" really like @execstr[] to return more than "first" line ...
|example exesctr[fc whatever,1]
|as an example - fc.exe returns the command parameters while the second
|line produces the result I want
|"FC: no differences encountered" -a- Plugin would work just as well
|---End Quote---
|
|@EXECSTR already supports an optional argument to specify the line you want.

And @EXECARRAY[] will allow you to collect several lines of a command's output.

Code:
v:\> setarray line[5]

v:\> echo %@execarray[line,dir /b *.txt] > NUL

v:\> for /l %l in (0,1,4) echo %line[%l]
123.txt
6412017366.txt
a.txt
abcdef.txt
array2file.txt
 
Your assuming I'm running v12. plugin for 4nt-v8 would be handy.
I can get the results I want with fc file1 file2 | head /n2 >dummy.txt
then read the dummy.txt for the answer I want
I have an os that god used when he was a child. some of the software I
use is no longer supported on my os. Don't really
want to fork out again for software that does the same thing it done
before with a new os. I will one day be forced too do just that :|
The quality of software today is just so good.

BUT I CAN'T GO WITHOUT 4NT AT ALL
NEW OS will be with tcc

Code:
---------
if "%1" == "" quit
cls
setlocal
except (%0;%1;readdata.txt;*.bak;dummy.txt) dir /b . > readdata.txt

do r=0 to %@dec[%@lines[readdata.txt]]
if %_kbhit == 1 leave
set x=%@line[readdata.txt,%r]
gosub check
enddo

goto end

:CHECK
echo.
echo Testing %x
do v=%@inc[%r] to %@dec[%@lines[readdata.txt]]
if %_kbhit == 1 leave
set y=%@line[readdata.txt,%v]
fc.exe %x %y | head /n2 >dummy.txt
if "%@instr[0,2,%@line[dummy.txt,1]]" == "FC" echo Matched %x %y
identical
SCREEN %_ROW 0 %R [%V]
enddo
return

:END
endlocal
---------
It reads rendering exports .XML files, locates duplicates. when found I
know which XML files to ignore it just saves
the hassle of not rendering duplicate images. The fully rendered images
I turn into animated videos for
family and friends toddlers Nemo anyone


> -----Original Message-----
> From: vefatica
> On Thu, 02 Jun 2011 08:26:04 -0400, rconn <> wrote:
>
> |---Quote (Originally by Kachupp)---
> |What "I'D" really like @execstr[] to return more than
> "first" line ...
> |example exesctr[fc whatever,1]
> |as an example - fc.exe returns the command parameters while
> the second
> |line produces the result I want
> |"FC: no differences encountered" -a- Plugin would work just as well
> |---End Quote---
> |
> |@EXECSTR already supports an optional argument to specify
> the line you want.
>
> And @EXECARRAY[] will allow you to collect several lines of a
> command's output.
>
>
> Code:
> ---------
> v:\> setarray line[5]
>
> v:\> echo %@execarray[line,dir /b *.txt] > NUL
>
> v:\> for /l %l in (0,1,4) echo %line[%l]
> 123.txt
> 6412017366.txt
> a.txt
> abcdef.txt
> array2file.txt
> ---------
 

Similar threads

Back
Top