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.


Close

By submitting this form, you agree to our
Terms of Use and Privacy Policy

Thanks for Subscribing

Keep an eye on your inbox for more great content.

Continue Reading

Add a little SmartBear to your life

Stay on top of your Software game with the latest developer tips, best practices and news, delivered straight to your inbox