Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Find A Share size in Win2k

by thunders (Priest)
on Oct 10, 2002 at 16:20 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-10-04 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (18 votes). Check out past polls.

    Notices?