echo off
SETLOCAL EnableDelayedExpansion
set caminho="C:\Users\%username%\AppData\Local\Microsoft\Outlook"
set maxbytesize=10
for /F %%i in ('dir /b "C:\Users\%username%\AppData\Local\Microsoft\Outlook\*.ost"') do (
set directoria=%caminho%\%%i
%1 %0 :: %directoria%
set len=%~z2
if %len% LSS %maxbytesize% (
msg * algo
PAUSE
) ELSE (
msg * O ficheiro exedeu 29Gb, diriga-se a Informatica
)
)
Im not so good in this so i need some help.
I have a similar code that works, but when i "transform" into this it starts to say that 10 is not expected
being 10 the %maxbytesize%
.
There some way to make this work or i need to start all over again??