Here you go.
The first file is named "FileSize.bat"
@echo off
setLocal EnableDelayedExpansion
set /a value=0
set /a sum=0
FOR /R %1 %%I IN (*) DO (
set /a value=%%~zI/1024
set /a sum=!sum!+!value!
)
echo !sum! > Size.txt
pause
The file makes a text file named "size.txt"
The second file is name "Compare.bat"
@echo off
setLocal EnableDelayedExpansion
set /a value=0
set /a sum=0
FOR /R %1 %%I IN (*) DO (
set /a value=%%~zI/1024
set /a sum=!sum!+!value!
)
for /f "Delims=" %%A in (%~dp0Size.txt) do (
set SIZE=%%A
)
if %SIZE%==!sum! (
start YOUR_URL__GOES_HERE & pause
) else (
Exit
)
If you dont wish to display the prompt during execution you could add a third file to run the batch file invisibly. This file is named "Invisible.vbs"
don't use the (.bat) extension on this file, only use the (.vbs) extension.
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "FileSize.bat" & Chr(34), 0
Set WshShell = Nothing
Place all files in the same directory.
Your welcome