Right now there is one server and N client machines. There is a situation now: because the client machines often automatically copy from the server to the local disk, drive D often runs out of space, and files have to be cleared manually.
So I'd like to ask: if I want to add a batch file when starting the computer, how should I do it?
The idea is as follows.
Automatically detect whether the free space on drive D is less than 8G
freedisk/d d: 8gb >null
If it is less than 8G, then delete the specified folders.
For example, folders 1 2 3 4 5. Maybe 1 was already deleted last time, so then delete them one by one in order, and check whether the disk space stays above 8G.
So I'd like to ask: if I want to add a batch file when starting the computer, how should I do it?
The idea is as follows.
Automatically detect whether the free space on drive D is less than 8G
freedisk/d d: 8gb >null
If it is less than 8G, then delete the specified folders.
For example, folders 1 2 3 4 5. Maybe 1 was already deleted last time, so then delete them one by one in order, and check whether the disk space stays above 8G.
