-4

how can you write the return value of "Call :GetSize %Folder%" into a variable? from this link.Get size of a directory in 'MB' using batch file

1 Answers1

0
@echo off
Set Folder="c:\users\"
for /f "delims=" %%a in ('CScript.EXE //noLogo "%~f0?.WSF" %Folder%  //job:info %~nx0%*') do set "out=%%a"
echo(%out%
pause
@exit /b 0
<job id="info">
(so on and so on... rest of the code)

For information about FOR command, check this link, or type for /? on your CMD.

Poypoyan
  • 446
  • 6
  • 15