lundi 18 mai 2015

How to make sure its enough disk space in bach?

Does anyone know if its possible to make sure the disk has enough space on a server with batch?

I have a batch script that loops and in this I would like to add a part that makes sure there is enough space on the disk and gives me an message if its not. Like this, easily explained:

Check diskspace
 If below 10mb free space
  echo low diskspace (& probably delete temp files or something)
   else continue

Thanks for any help!

Aucun commentaire:

Enregistrer un commentaire