$filename = "\\\\server\\c\$\\boot.ini";
if (-e $filename) { # If file specified in filename exists
$size = (stat $filename)[7];
print "$filename is $size bytes in size\n";
} else {
print "$filename does not exist\n";
}
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 21 June 2001 11:19
To: [EMAIL PROTECTED]
Subject: file size
Hi,
I would like to know if with a perl script you can get the size of a file ?
I need to get all the size of 250 files on 250 computers ...
thanx
--------------------------Confidentiality--------------------------.
This E-mail is confidential. It should not be read, copied, disclosed or
used by any person other than the intended recipient. Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful. If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.