I wondered if anyone had an idea on a piece of code that could tell me the available free disk space.
There is a trick here, otherwise this easy question wouldn't be here.
I need the free disk space to read off where the program is being run, and NOT a particular drive letter.
If i'm running the program from D drive, can i get the program to say in output
Current Drive : D
but if i run it from a USB stick
Current Drive: F
I could try a dos command for freespace but you need to specify a drive letter to get an answer.
Anyone know of a solution or a piece of code that could work here?
Appreicate any help, while this is NOT critical to my program, it would be a bonus, so no stress :)