Forum Discussion
Yes, you can do it:
aqFileSystem.GetDriveInfo("driveName").FreeSpace
hi and thanks,
I knew this one. But - where canI get the log Folder Name via script?
- ghuff29 years agoContributor
I think the Log file is always saved to the Log folder in the Project folder. Maybe someone can correct me, but I don't think there is any way to change that. So you can use Project.Path to get the project folder, which will give you the drive which log files are stored on. Then use the statement baxatob provided to get the Free Space for that drive. Something like this in python:aqFileSystem.GetDriveInfo(Project.Path.split('\\')[0]).FreeSpaceEdit: tristaanogre's solution is much better.
- tristaanogre9 years agoEsteemed Contributor
Actually, you can specify a different folder for the log. If you double click on your project in the project explorer and then select the properties tab, you can do this:
Log.Path should be the best place to get the path of the test log.
Related Content
- 3 years agoCKTester
- 11 months agosanjayram
- 11 months agoIrinaManea
Recent Discussions
- 48 minutes agoMW_Didata