Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: remove files from the V volume on windows server 2008

by Crackers2 (Parson)
on Aug 22, 2012 at 00:50 UTC ( #988915=note: print w/ replies, xml ) Need Help??


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

Two things. First:

if ( $V_RoundedTotalNumberOfFreeGigabytes < 3.5 && $V_RoundedTotalNumberOfFreeGigabytes == 3.5) {

seems wrong. It can't be both < 3.5 and == 3.5 at the same time. Maybe you want to simply say <= 3.5 ?

Second, readdir returns just the filename. So on the unlink you probably want

unlink $dir_to_process . "/" . $file


Comment on Re: remove files from the V volume on windows server 2008
Select or Download Code
Re^2: remove files from the V volume on windows server 2008
by fnicholas (Initiate) on Aug 22, 2012 at 13:19 UTC
    Thanks for your help! I appreciate it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988915]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2015-07-02 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (35 votes), past polls