用 VB 打开任意盘(硬盘/U盘/光盘)的文件.[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 chanet 的 blog

        end  '并结束本程序

    else

        debug.print "cd-rom is empty"

    end if

err_file:

   if err.description = "错语的文件名或号码" then exit sub

end sub

 

function isemptycdrom(sdrive as string)

     dim s

    

    on error goto errhandle

     s = dir(sdrive + "*.*")

     isemptycdrom = false

     exit function

errhandle:

     isemptycdrom = true

end function

 

本文关键:CD-ROM,硬盘,U盘,光盘
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top