Limit of FOR Variables.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Meerkat
Posts: 89
Joined: 19 Jul 2015 02:27
Location: Philippines

Limit of FOR Variables.

#1 Post by Meerkat » 30 Jan 2016 22:09

Hmm... While making a "hex2bin dropper" in Batch, I am curious...

... What is the size limit of a FOR variable? (I mean the limit of storage in %%A, etc.)

Meerkat

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

Re: Limit of FOR Variables.

#2 Post by jeb » 31 Jan 2016 01:24

Hi Meerkat,

there is no limit for a FOR variable, it can store 100000 characters without problems.
BUT I don't know a way to expand such a variable, or how to access only a part of a FOR-variable.

At the end I suppose you are limited with the FOR-variables at 8191 characters, so that you can handle it.

Post Reply