Posted September 27, 2006
TestComplete Tip: How To Check Free Drive Space
There's always more than one way to do things in TestComplete. Here's a VBScript example that
demonstrates two methods to get the free disk space on the hard drive.
If you're new to TestComplete scripting, add this example to a new project and try creating
a VerifyFreeSpace(bytes)routine that returns true if enough space is available and false if there isn't enough
space on the disk. Then call the new routine from the Main routine and log an error if not enough space is available.