Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for a reliable way to determine if a drive letter is in use
#5
Looks like you'd use GetLogicalDrives()

So,

Code: (Select All)
Declare CustomType Library
Function GetLogicalDrives~&()
End Declare

Dim As Unsigned Long currentLetters: currentLetters = GetLogicalDrives
'do something to figure out the bitmask using AND
Schuwatch!
Yes, it's me. Now shut up.
Reply


Messages In This Thread
RE: Looking for a reliable way to determine if a drive letter is in use - by Ultraman - 05-08-2023, 03:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What the heck, it's Friday let's drive some people nuts. doppler 4 1,030 10-21-2024, 11:31 AM
Last Post: SpriggsySpriggs
  _File$ is not behaving as expected, cannot determine why hanness 6 1,681 10-14-2024, 01:56 AM
Last Post: a740g
Sad Is there a way to determine screen resolution ? doppler 2 735 08-03-2023, 02:30 PM
Last Post: doppler
  Is it possible to determine the screen scaling factor within QB64? hanness 3 851 05-09-2022, 01:37 AM
Last Post: hanness

Forum Jump:


Users browsing this thread: 1 Guest(s)