[CONT] 8192

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

[CONT] 8192

#1 Post by Cleptography » 15 Jun 2011 05:00

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.

jeb
Expert
Posts: 1055
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: [CONT] 8192

#2 Post by jeb » 15 Jun 2011 05:04

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

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: [CONT] 8192

#3 Post by Cleptography » 15 Jun 2011 05:14

Hey Jeb, not sure what I was going after just playing around with things.
How do you get past the limitations?

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: [CONT] 8192

#4 Post by orange_batch » 15 Jun 2011 05:49

By not going past them. :roll:

jeb
Expert
Posts: 1055
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: [CONT] 8192

#5 Post by jeb » 15 Jun 2011 06:04

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

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: [CONT] 8192

#6 Post by orange_batch » 15 Jun 2011 07:33

"Best to stay within acceptable parameters."

Image

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: [CONT] 8192

#7 Post by Cleptography » 15 Jun 2011 08:34

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:

allal
Posts: 34
Joined: 04 Jun 2011 05:49

Re: [CONT] 8192

#8 Post by allal » 15 Jun 2011 12:09

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

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: [CONT] 8192

#9 Post by Cleptography » 15 Jun 2011 14:17

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

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: [CONT] 8192

#10 Post by Cleptography » 15 Jun 2011 18:04

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^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

echo=%new%
exit /b


SECOND SCRIPT TEST1.BAT

Code: Select all

@echo off

echo=%var%

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: [CONT] 8192

#11 Post by Ed Dyreen » 15 Jun 2011 18:19

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.

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: [CONT] 8192

#12 Post by Cleptography » 15 Jun 2011 18:40

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:

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: [CONT] 8192

#13 Post by Ed Dyreen » 15 Jun 2011 18:53


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 !
Last edited by Ed Dyreen on 15 Jun 2011 18:57, edited 1 time in total.

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: [CONT] 8192

#14 Post by Cleptography » 15 Jun 2011 18:56

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. :?

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: [CONT] 8192

#15 Post by Ed Dyreen » 15 Jun 2011 19:03


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 !

Post Reply