Forum Discussion
4 Replies
Sort By
- baxatobCommunity Hero
Yes, you can do it:
aqFileSystem.GetDriveInfo("driveName").FreeSpace
- Manfred_FRegular Contributor
hi and thanks,
I knew this one. But - where canI get the log Folder Name via script?
- ghuff2Contributor
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.
Related Content
- 3 years agoCKTester
- 11 months agosanjayram
- 10 months agoIrinaManea
Recent Discussions
- 4 hours agoSvetaG