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

Re: Find A Share size in Win2k

by thunders (Priest)
on Oct 10, 2002 at 16:20 UTC ( [id://204216]=note: print w/replies, xml ) Need Help??


in reply to Find A Share size in Win2k

for the record, a call to dir would look something like this:
#!/usr/bin/perl use strict; my $dir = "//server/share"; #or whatever my ($size)=( (qx{dir /s "$dir"})[-2]=~ /([\d,]+) bytes/ ); print $size;
Not pretty but probably faster than recursing
UPDATE: changed directory i'm calling from a local to a share

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2025-06-18 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.