Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Perl でディスクの残りの空き容量を確認する方法を探しています。Perl のバージョンが異なる多くのサーバーにスクリプトを展開する必要があるため、CPAN を使用できません。また、チーム リーダーが CPAN を使用するように指示したため、CPAN を変更することもできません。
何か案が?試してみFile::statましたが、使用できませんD:\(スクリプトは Windows バージョンで実行されます)。
File::stat
D:\
ありがとう!
fsutil volume diskfree C:
Windowsサーバーの場合、system()メソッドからこのcmdコマンドを実行できます。