Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

the DIR function.

$
0
0
Hello,
I was looking for a way to get All the hard drive ( my first idea was to get all the Usb Key connected )
so the first thing i thought was to use Dir

Well it work well with my hard drive
Code:

if dir("c:/") <> '' then msgbox "you got it"
else msgbox "Not there"

but that dont work for the usb key?

I plugged a Usb key, and his letter was I
So i went
Code:

if dir('I:/') <> '' then msgbox "you got it"
else msgbox "not there"

but it wasnt working.

That's normal ?? this command doesnt work with other thing than local hard drive ?

Viewing all articles
Browse latest Browse all 21843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>