http://www.perlmonks.org?node_id=988917


in reply to Re: remove files from the V volume on windows
in thread remove files from the V volume on windows server 2008

What error message do you get when the unlink fails?
ERROR: The Free Size is : 2.5 GB failed on .: failed on ..: Use of uninitialized value in numeric gt (>) at diskspace.pl line 24. failed on file1.txt: No such file or directory
What output do you get if you change the unlink to:
## $^E is the extended system error message unlink $file or warn "failed on $file: $^E\n" if -M $file > 14;
ERROR: The Free Size is : 2.5 GB failed on .: Access is denied failed on ..: The system cannot find the file specified Use of uninitialized value in numeric gt (>) at diskspace.pl line 24. failed on file1.txt: The system cannot find the file specified