Computing.Net > Forums > Disk Operating System > set dir size with a batch 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.

set dir size with a batch file?

Reply to Message Icon

Name: Mark Robbins
Date: December 5, 2002 at 09:44:26 Pacific
OS: win2000/novell client
CPU/Ram: PIII 256
Comment:

Is it possible to set a folders size using a batch file. ie: S:\people\*.* all folders under people i want to limit the folder size to 300MB, there are about 500 users, it would take me for ever to do each individually. I am running win2000 with a novell client, thanks in advance for your help!!!!



Sponsored Link
Ads by Google

Response Number 1
Name: elric
Date: December 7, 2002 at 01:12:29 Pacific
Reply:

G'day,
Not sure how you would go about it using a batch file. If no-one else can help , you could consider using a programming language like QBasic, C or Pascal.
If there is a DOS service or BIOS call that returns the size of the directory, you could write a program that utilises this and then returns an error message if size > xMbyte.
Also, this program would have to be monitoring the directory all the time, so I'm not sure how that would be handled in a multi-user system.
You could, of course, create a partition of that size and let Windows deal with the error when it fills up.

Good luck


0

Response Number 2
Name: maro0129
Date: December 9, 2002 at 08:08:49 Pacific
Reply:

OK, thanks for your help!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: set dir size with a batch file?

Close Win Program with a Batch File www.computing.net/answers/dos/close-win-program-with-a-batch-file/13949.html

Help with a batch file www.computing.net/answers/dos/help-with-a-batch-file/4632.html

email with a batch file using blat www.computing.net/answers/dos/email-with-a-batch-file-using-blat/14340.html