-1

Is there a way to check if the my process can check whether its directory is on the Windows installation drive? For example, my file is on the D: drive but Windows is on the C: drive.

I want this because the file should be launched from an external drive.

With this can you also check whether the drive currently exists? Again an example, the file is on a USB in D:, can you check if the D drive still exists while the program is running? Like whether the USB in unplugged while running?

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
Reece
  • 3
  • 1

1 Answers1

0

Split up the problem into the individual components:

G. Sliepen
  • 7,637
  • 1
  • 15
  • 31