0

I am trying to translate some code I use to run a backup to Nim (as part of learning the language). How do I detect if one of my external hard drives is connected (by name?) and then which drive letter my Windows 10 PC has assigned to it?

dvnguyen
  • 2,954
  • 17
  • 24
Alan James
  • 125
  • 5

1 Answers1

1

With Window message: WM_DEVICECHANGE and winapi RegisterDeviceNotification

Drake Wu
  • 6,927
  • 1
  • 7
  • 30