View Full Version : How to check disk space before build
name4me
03-08-2005, 08:24 PM
I need to make sure I have enough disk space before running the build. Can this be automated by VBP 5.0?
kinook
03-08-2005, 11:33 PM
The attached sample demonstrates checking the available free space on drive C and aborting if below some threshold amount.
name4me
03-10-2005, 01:35 PM
This helps greatly!! Thanks.
Br.Bill
05-19-2011, 04:29 PM
This depends on the following object method:
freeSpace = vbld_FS0.GetDrive("C").FreeSpace
This seems to work fine.
Where is this vbld_FS0 object documented?
What other methods does it have?
How can I do the same for a file share (\\host\sharename) ?
Thanks.
kinook
05-19-2011, 04:41 PM
This depends on the following object method:
freeSpace = vbld_FS0.GetDrive("C").FreeSpace
This seems to work fine.
Where is this vbld_FS0 object documented?[/I]
http://www.kinook.com/VisBuildPro/Manual/sysscriptfile.htm
What other methods does it have?
http://msdn.microsoft.com/en-us/library/aa242706%28VS.60%29.aspx
How can I do the same for a file share (\\host\sharename) ?
Some possibilities: http://www.google.com/search?q=vbscript+find+free+space+on+a+network+sha re
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.