[CONT] 8192
Moderator: DosItHelp
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
[CONT] 8192
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.
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
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
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
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: [CONT] 8192
Hey Jeb, not sure what I was going after just playing around with things.
How do you get past the limitations?
How do you get past the limitations?
-
- Expert
- Posts: 442
- Joined: 01 Aug 2010 17:13
- Location: Canadian Pacific
- Contact:
Re: [CONT] 8192
By not going past them.
Re: [CONT] 8192
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#--------------
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
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
-
- Expert
- Posts: 442
- Joined: 01 Aug 2010 17:13
- Location: Canadian Pacific
- Contact:
Re: [CONT] 8192
"Best to stay within acceptable parameters."
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: [CONT] 8192
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.
Re: [CONT] 8192
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
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: [CONT] 8192
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
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: [CONT] 8192
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.
MA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xxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
echo=%new%
exit /b
SECOND SCRIPT TEST1.BAT
Code: Select all
@echo off
echo=%var%
Re: [CONT] 8192
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
jeb tests things
benham tests things
I invent methods based upon other peoples work
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.
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: [CONT] 8192
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.
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.
Re: [CONT] 8192
☺
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 !
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.
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: [CONT] 8192
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.
first execution, also does not work.
Re: [CONT] 8192
☺
Huh
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 !
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 !