Forum Discussion

Manfred_F's avatar
Manfred_F
Regular Contributor
6 years ago

Check available disk space for logging

Iwant to do this by Scripting.

=> How do I Access the log location?

3 Replies

    • Manfred_F's avatar
      Manfred_F
      Regular Contributor

      Project.Path + "Log\" gets me

      I:\Automatisierung\Projects\Test TC\Test Prototyp\Log\

       

      ProjectSuite.Path + "Log\" gets

      I:\Automatisierung\Projects\Test TC\Log\

       

      In my Project, the log Location property is set to %TcLog%TestTC\Test Prototyp,

      which Points at

      C:\TestLogs\TestTC\Test Prototyp

       

      Can I read the log Location property somehow?

      • shankar_r's avatar
        shankar_r
        Community Hero

        One correction on the above post,

         

        You can get exact path of log by using Logs.Path

         

        Below will get you the free space of the driver.

         

        aqFileSystem.GetDriveInfo("driveName").FreeSpace