Quote:

Did you take a look at the examples?
Code:

for each $drive in WshEnumDrives()
$driveletter=$drive.driveletter
? "DriveLetter .... "+$driveletter
next






Oobnuker:

This example shown by Jens will put a drive into the $drive variable. And continue to the next drive. In between it does something (in this case it shows each drive on screen) with each drive.
This also could be changed to your needs.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.