Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 perusing the Monastery: (3)
As of 2024-04-20 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found