Page 1 of 2

[CONT] 8192

Posted: 15 Jun 2011 05:00
by Cleptography
Yeah it is to hard to reply to that post so just discuss here.
This is a mind boggler. How to get past 8192 chars, but I know
if someone figures it out Ed will do the happy dance.

Re: [CONT] 8192

Posted: 15 Jun 2011 05:04
by jeb
What do you expect that your code does, and what do you get?

In test2 I get simply an error that the line is too long.
And why you put always carets at the line end, the code can't work even if the line is short.

jeb

Re: [CONT] 8192

Posted: 15 Jun 2011 05:14
by Cleptography
Hey Jeb, not sure what I was going after just playing around with things.
How do you get past the limitations?

Re: [CONT] 8192

Posted: 15 Jun 2011 05:49
by orange_batch
By not going past them. :roll:

Re: [CONT] 8192

Posted: 15 Jun 2011 06:04
by jeb
Currently I can only bypass the limitation with a FOR /F loop.

I suppose, a single macro/variable can't break this limit.

And even the FOR /F have some limitations, I can access a line with 20000 characters, but I have to split it with the DELIMS.

Here I create a line with <5000 times .><one #><10000 times X><one #><5000 times ->
................#XXXXXXXXXXXXXXXXXXXX#--------------

Code: Select all

@echo off
setlocal EnableDelayedExpansion
set "long=."
for /L %%n in (1,1,13) do set "long=!long:~-2500!!long:~-2500!"
(
  <nul set /p ".=!long!#"
  <nul set /p ".=!long:.=X!"
  <nul set /p ".=!long:.=X!#"
  <nul set /p ".=!long:.=-!"
  (echo()
  echo Line2#is#here
) > long.txt
echo off
FOR /F "tokens=1,2,* delims=#" %%a in (long.txt) do (
  set "part1=%%a"
  rem set "part2=%%    b"
  set "part3=%%c"

  echo part1=!part1:~4990!
  rem echo part2=!part2:~4990!
  echo part3=!part3:~4990!
  echo(
)


Code: Select all

part1=..........
part3=----------

part1=
part3=


As you can see the FOR /F procceed even a line with 20000 characters, but you can't access the %%b with 10000 characters, as then the loop stops/crash/show unexpected.
It crashes if you do an echo ON before.
It shows unexpected results, if you do a simple set part2=%%b
It stops if you insert an echo %%b

jeb

Re: [CONT] 8192

Posted: 15 Jun 2011 07:33
by orange_batch
"Best to stay within acceptable parameters."

Image

Re: [CONT] 8192

Posted: 15 Jun 2011 08:34
by Cleptography
orange_batch wrote:"Best to stay within acceptable parameters."

Why, that is no fun. Push the boundaries as far as your imagination can take them.
We are getting closer. :shock:

Re: [CONT] 8192

Posted: 15 Jun 2011 12:09
by allal
a simple variable can not store more than 8192 but using an array can

Code: Select all

setlocal enabledelayedexpansion
for %%G IN ("%systemroot%\system32\*.*") do  ( call set array_!cnt!=%%array_!cnt!%% "%%~G" || set /a cnt+=1&call set array_!cnt!=%%array_!cnt!%% "%%~G"
 cls&echo array_!cnt! & call echo %%array_!cnt!%%
 )

echo total array we stored our data in is array_!cnt!
pause

for /l %%N IN (0,1,!cnt!) do call echo %%array_%%N%%

pause&goto :eof

Re: [CONT] 8192

Posted: 15 Jun 2011 14:17
by Cleptography
allal I do not like the use of the word array in the above. I can not agree that there are real arrays in batch. Dirty little coder. Objective one variable 8192 bytes. Still working

Re: [CONT] 8192

Posted: 15 Jun 2011 18:04
by Cleptography
After reading the doc on the limitations. I created this very easy to understand example. Set the variable the first time from the initial script, use it in an external script, return to the main set another variable and use it from the main. This has failed for me in all other variations of the combined. I would presume this could be repeated as many times as desired but would require more external files, as the second script fails if any other code is added more than that is already there.

MAIN SCRIPT TEST.BAT

Code: Select all

@echo off

set var=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

echo=%new%
exit /b


SECOND SCRIPT TEST1.BAT

Code: Select all

@echo off

echo=%var%

Re: [CONT] 8192

Posted: 15 Jun 2011 18:19
by Ed Dyreen

Code: Select all

echo=%new%

I hope this is a typo.

Code: Select all

set var=x...

seems to be too long

Code: Select all

echo.%new%

works.

What is the problem ?, you simply crossed the variable limit. Don't ask me to test stuff..
Just say, thanx jeb &benham :D

jeb tests things
benham tests things
I invent methods based upon other peoples work :mrgreen:

Also why don't you want to use an array ? just put allal's code in a 'black box' and acces it as a variable.

Re: [CONT] 8192

Posted: 15 Jun 2011 18:40
by Cleptography
The echo= is not a typo works on a win7 machine, was just playing around with different methods inspired by Dave's testing of speed between echo: echo. etc...

The test I preformed does not really count for desired results as combining the two values outputs an error, and that is what we are trying to do create macros expanding beyond the 8191 character limit, but it does get past the restricted limit. If you notice though in the second variable declaration a few bytes had to be subtracted, it seems each time you repeat this process a few bytes has to be extracted from the initial declaration. :?

But yes it does work. :mrgreen:

Re: [CONT] 8192

Posted: 15 Jun 2011 18:53
by Ed Dyreen

Ok, there seem to be some differences. echo= doesn't work on XP,

First you try to set $var to some value, that crashes my console, so I had to make it a little smaller.
Second you define another variable $new so it's not oNe but tWo variables.
And you use tWo echo's to echo unrelated variables.

What does this prove, I am not following. :|

are you trying THIS:

%@macroPART1%%@macroPART2%

is a valid command ?

because that may work, but it won't work for internal macros:
@macro=(

%@macroPART1%%@macroPART2%
)

not valid. too many chars !

Re: [CONT] 8192

Posted: 15 Jun 2011 18:56
by Cleptography
Try executing all of it from one script does not work, or try declaring a small variable in the second script after the
first execution, also does not work. :?

Re: [CONT] 8192

Posted: 15 Jun 2011 19:03
by Ed Dyreen

Huh :?:
Try executing all of it from one script does not work, or try declaring a small variable in the second script after the
first execution, also does not work. :?

I can't help u, I really don't get it, I told you you were on your own .
You can't bypass the variable limit as far as I know !