呵呵,从csdn上找到的<br><br>function LoadDrives:string; // read server logical drives<br>var<br> Drv:array [0..MAX_PATH] of Char;<br> buf:Cardinal;<br> Drives:string;<br> i:integer;<br>begin<br> Drives:='';<br> Result:='';<br> buf:=MAX_PATH;<br> GetLogicalDriveStrings(buf,Drv); //DRV&micro;&Atilde;&micro;&frac12;&Egrave;&ccedil;&pound;&ordm;c:/<null>d:/<null><null> &frac14;&ucirc;msdn<br> for i:=0 to MAX_PATH do<br> begin<br> if (Drv=#0) and (Drv[i+1]=#0) then exit; //&Oacute;&Atilde;&Oacute;&Uacute;×&icirc;&ordm;ó&frac12;á&Ecirc;&oslash;×&Ouml;·&ucirc;&acute;&reg;<br> if Drv<>#0 then Drives:=Drives+Drv<br> else begin<br> Result:=Result+Drives;<br> Drives:='';<br> end;<br> end;<br>end;