Uhm, how do you know what drives are attached in the computer? Fixed Drives, Removable Drives, etc..
It should work something like this (in vbs):
Thanks!Code:set filesys = CreateObject("Scripting.FileSystemObject") set drvs = filesys.Drives for each d in drvs Wscript.echo d next