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?
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!!!!
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
Summary: Can someone please help me with writing a batch file? I really don't know much about them. Here is what it needs to do if possible. In a dos promt I change to a network drive "F" then cd and then from...
Summary: Does anyone know how to write a batch file to send an email using Blat.exe? I can send no problem from an msdos window, using the syntax: blat [filepath] -s ["subject"] -t recipient@wherever.com but w...