Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
He's playing a game called IRL. Great graphics, *censored* gameplay.
@echo offtitle File Counter batch.:recurseset I=1echo "files in folder"cdREM view all files, EXCEPT directories.FOR /f "tokens=*" %%P IN ('dir /A-d /b') do (call :showfiles "%%P")echo Filecount: %I%REM now call on all subfolders...:showfilesecho %1set /a I+=1goto :eof
@echo offtitle File Counter by Tan_ZaSET count=1FOR /f "tokens=*" %%G IN ('dir /b') DO (call :s_do_sums "%%G")echo Any key to continueecho made by Tan_Za. any questions email me at:tanza.lince@gmail.compause >nulGOTO :eof:s_do_sumsecho %count%:%1set /a count+=1GOTO :eof
@echo offsetlocal enabledelayedexpansionfor /f %%A in ('dir /s ^| find "File(s)"') do (set B=%%A+!B!)set B=%B%0set /a C=%B%echo %Cpauseexit
BC programmer, you're batch file counted the files. But then it just exited out.
@echo offtitle File Counter batch.:recurseset I=1echo "files in folder"cdREM view all files, EXCEPT directories.FOR /f "tokens=*" %%P IN ('dir /A-d /b') do (call :showfiles "%%P")echo Filecount: %I%REM now call on all subfolders...PAUSEgoto :eof:showfilesecho %1set /a I+=1goto :eof
What's wrong with:dir /b /s /A-d c:\temp | find "" /v /n /c
Hello All,I would like to count the number of files from a folder and only count the files from yesterday. And email the count to a specific email address. I would set this on a Task Scheduler to daily to get a count and see how many files are added to the folder. I tried creating a batch file dir /a "C:xx\" |find /c /v "" But this gives me a count of everything in the folder, i just need a count from yesterday and also i dont know how to email the count.Please help!