目前已获取路径为\Device\HarddiskVolume1\Windows\System32\svchost.exe ,想转换成 “盘符”\Windows\System32\svchost.exe ,例:C:\Windows\System32\svchost.exe 不能确定Device是否只有1个硬盘,不能确定HarddiskVolume1是否只是C盘,因为用户可能有2个硬盘,而系统不一定装在C。请用VB6.0代码或问询 QueryDosDevice在VB中的具体用法、也就是通过循环盘符获取每个盘符所对应的\Device\HarddiskVolume1
dim str1 as stringstr1="\Device\HarddiskVolume1\Windows\System32\svchost.exe"dim a() as stringa=split(str1,"\")//如果是C盘的话,直接连接字符串就行了dim str2 as stringstr2="c:"for i=3 to ubound(a)-1 str2=str2 & "\" & a(i)next i//str2就是你想要的路径。