Way to list specific folder size and send it on email as a txt attachment

I used DirUse with a batch file as follows:

**************************************************************************************
diruse /s /k /q:50 \\ComputerName\c$\test > c:\data.txt
commail -host=ExchangeServer.DomainName.com -from=EmailAddress@DomainName.com -to=EmailAddress@DomainName.com -subject=FolderSize -msg=c:\data.txt

**************************************************************************************
That worked Great.

commail is what I use to send email. If you need it, email me.

Comments

Popular posts from this blog

Solved Account lockout issue

My Wintel Infrastructure Transitioning Experience

Windows 2008 RDC / RDP: "Because of an error in data encryption, the session will end"