Computing.Net > Forums > Disk Operating System > How to find size of a file?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to find size of a file?

Reply to Message Icon

Name: tvj80
Date: June 8, 2009 at 11:59:37 Pacific
OS: Windows XP
Subcategory: General
Comment:

Hi,
Using dos script i want to check the size of the file. If it is over 1 mb i want to rename it. i got the logic for renaming with time stamp but not clear with the file size. I am not passing file name as argument.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 8, 2009 at 13:23:52 Pacific
Reply:

It might help to post a few lines from a DIR output.

"i got the logic for renaming with time stamp"

You got me intrigued.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: Renjith_S
Date: November 24, 2009 at 02:22:46 Pacific
Reply:

Hi Guys,

Can any one help me with the below requirement?

I need to have a command in DOS which checks the size of any file.

Regards,
Renjith


0

Response Number 3
Name: Mechanix2Go
Date: November 24, 2009 at 03:51:27 Pacific
Reply:

dir filename.ext


=====================================
Helping others achieve escape felicity

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: How to find size of a file?

Changing part of a file www.computing.net/answers/dos/changing-part-of-a-file/1128.html

Set variable to contents of a file. www.computing.net/answers/dos/set-variable-to-contents-of-a-file/13420.html

Inserting lines to top of a file www.computing.net/answers/dos/inserting-lines-to-top-of-a-file/16317.html