문제

I’m looking for a way to check the remaining free space on a disk within Perl. I can’t use CPAN since I have to deploy the script on many servers with different versions of Perl, and I can’t change it because my team leader ordered me that way.

Any idea? I tried File::stat but I can’t use it on D:\ (the script runs on Windows versions).

Thanks!

올바른 솔루션이 없습니다

다른 팁

fsutil volume diskfree C:

For Windows servers you can run this cmd command from system() method.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top