I want to convert the size into Mbytes. i am using this code

July 18, 2012 at 22:19:43
Specs: Windows 7
@echo off
For /F "tokens=*" %%a IN ('"dir /s /-c /a | find "bytes" | find /v "free""') do Set xsummary=%%a
For /f "tokens=1,2 delims=)" %%a in ("%xsummary%") do set xfiles=%%a&set xsize=%%b
Set xsize=%xsize:Mbytes=%
Set xsize=%xsize: =%

Echo Size :%xsize%
echo Size : %xsize% >> D:\BackupLog\%date:~10,4%_%date:~4,2%_%date:~7,2%_log.txt


See More: I want to convert the size into Mbytes. i am using this code

Report •


#1
July 18, 2012 at 23:02:25
Please help me out as early as possible.

Report •

#2
July 19, 2012 at 02:38:16
Before you get an answer you need to ask a question. What is your question?

Report •

#3
July 19, 2012 at 05:36:29
i need a batch script which can send an automatic email with log file after the backup job is completed.
log file should contain start time , end time, size of backup, no. of copied files

Report •

Related Solutions

#4
July 19, 2012 at 07:31:05
I guess that rather depends upon what backup software you are using.

Report •


Ask Question