how to program a bat file to read the size of a file?

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
sulmau
New Member
Posts: 13
Joined: Tue Dec 28, 2004 6:04 am

how to program a bat file to read the size of a file?

Post by sulmau »

Hi all,

I'm new to this forum & this is my 1st post & really need ur help regarding a bat file programming.

I'm currently using the Windows NT 4.0 & need to run a bat file to check the size of the files downloading in a specific folder at specific intervals.

i.e bat file runs every xx minutes & check the size of the files always alphanumeric, & move the files if greater then xx size to another location?

Can anyone let me the exact code to program this type of bat file?

Awaiting helpful reply.

Regards / Sulman
User avatar
Norm
SG VIP
Posts: 14195
Joined: Tue Mar 27, 2001 12:00 pm

Post by Norm »

This may help...
http://www.ericphelps.com/batch/samples/filesize.txt
other sample batch files
http://www.ericphelps.com/batch/samples

What you want is not simple, and I doubt anyone will come around to do it for you, but you never know..
sulmau
New Member
Posts: 13
Joined: Tue Dec 28, 2004 6:04 am

Post by sulmau »

Norm wrote:This may help...
http://www.ericphelps.com/batch/samples/filesize.txt
other sample batch files
http://www.ericphelps.com/batch/samples

What you want is not simple, and I doubt anyone will come around to do it for you, but you never know..
Hi,

Can anyone let me know in anyother language this can be programmed & then run under OS Win NT 4.0 to do the task?

or any other idea to do the trick?

Awaiting helpful reply / guideness as always......... :)

Thanks / Sulman
Post Reply