Hard drives are big these days and I want to store all my pictures on it and some times check to see if I have added or moved any files out by mistake.
this one is the one that works close to what I need but I don't what it to show me all the folders, just my selected ones
How to list all folder with size via batch file
I need a simple Batch file that can do a byte count and compare it to a number that it should be echo, good or not and then same routine on my chosen folder.. thanks for the help in advance
set "folder=DVD-001 - 4,471,234,796"
set "size=0
for /f "tokens=3,5" %%b in ('dir /-c /a /w /s "%%~fa\
@echo foldername !size! Bytes
IF !size! EQU 4471234796 (@echo good) ELSE (@echo oops)
:next folder
set "folder=DVD-002 - 4,590,775,746"
set "size=0
for /f "tokens=3,5" %%b in ('dir /-c /a /w /s "%%~fa\
@echo foldername !size! Bytes
IF !size! EQU 4590775746 (@echo good) ELSE (@echo oops)