Sunday, February 24, 2008

Small update!!

Attention: My views can now be read here.
I sincerely hope to be a more regular blogger now AND manage blogs in a better way.


----------------------------------------
My views can now be read here.
I sincerely hope to be a more regular blogger now AND manage blogs in a better way.

A small introduction of TIPS

This blog is meant to serve as a platform to share tips which can be used in our day to day lives...The tips may range from personal to professional and casual to more formal ones!! No set agenda...Just raw tips :)

Hope to see you there....

Friday, September 28, 2007

File size in bytes using command prompt

How do I get the size of a file in bytes (purely in numbers) on Command prompt:

After much R&D I got to the following command:

FOR /F "usebackq delims==" %i in (`dir /b for.txt`) do %~zi


The last part after do can be replaced by SET %~zI = %size etc.. to use this in the batch files.
The delimitter is backq, i.e. ` and not '

Share on Facebook