OK, I don't get an error now since I put the dim statement before $drives[0] . If this is actually creating an array with the size of all the disk drives listed in it how do I access the results of the array? the ultimate goal is to be able to redirect the output to a file but for now I will settle for having it on screen. So far I have tried to do ? "$drives[1] , etc and get nothing. Also how would I handle echoing all the results out to the screen or a file when I don't know how many elements the array contains?

Thanks for everyones help. I really hate being such a pest with what are to you probably silly newbie questions.