A
anon1m0us
Does anyone know any commands that will tell me the size of a
directory? My program needs to scan every user in a OU and inform me
how large their roaming profile is. I currently use:
result_of_locdsquery = `dsquery user
"OU=#{loc},OU=AB,DC=abcd,DC=root,DC=xyz,DC=com" -limit 999 -name "*" |
dsget user -samid -profile `.split("\n")
result_of_locdsquery.pop #remove the last item of the array
result_of_locdsquery.shift #remove the first item of the array
counter=2
result_of_locdsquery.each do |line|
user, path= line.split(/\s+.\s+/)
loc_users=[user]
loc_path=[path]
result_of_locdiruse = `diruse /m #{path}`.chomp
However, this takes forever to do..any shorter way??
In addtion, how do you BOLD and hightlight and excel CELL??
directory? My program needs to scan every user in a OU and inform me
how large their roaming profile is. I currently use:
result_of_locdsquery = `dsquery user
"OU=#{loc},OU=AB,DC=abcd,DC=root,DC=xyz,DC=com" -limit 999 -name "*" |
dsget user -samid -profile `.split("\n")
result_of_locdsquery.pop #remove the last item of the array
result_of_locdsquery.shift #remove the first item of the array
counter=2
result_of_locdsquery.each do |line|
user, path= line.split(/\s+.\s+/)
loc_users=[user]
loc_path=[path]
result_of_locdiruse = `diruse /m #{path}`.chomp
However, this takes forever to do..any shorter way??
In addtion, how do you BOLD and hightlight and excel CELL??