0

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!

4

1 回答 1

0
fsutil volume diskfree C:

对于 Windows 服务器,您可以从 system() 方法运行此 cmd 命令。

于 2012-12-10T09:23:28.827 回答