I'm using this solution which Compo gave.
But when I run the bat and get two else
in…
If %%~zA Lss %MaxByteSize% (msg * algo) Else (
msg * O ficheiro exedeu 29Gb, diriga-se a Informatica))
…and have, for example another batch or a vb program, it will open it more than once, which is annoying.
Is there a way to make it possible not to open several times with something like:
If %%~zA Lss %MaxByteSize% (msg * algo)
Else (
If %something% lss 1 (msg * O ficheiro exedeu 29Gb, diriga-se a Informatica)
Else ( )
%something%=%something%+1
)
I'm not so good with code so that's why I'm "grabbing" code here and there.