Detecting CD-Rom Drive
C#
3
Posts
3
Posters
0
Views
1
Watching
-
hi all , how can i detect that my application is running from CD-Rom Drive and not from HD thank you
use
Environment.CurrentDirectory
to get the current directory of your application and check it yourself:cool: -
hi all , how can i detect that my application is running from CD-Rom Drive and not from HD thank you
Better than the current directory (suggested in the other post) use
Application.StartupPath
. It will always contain the folder where the EXE is located, even if the application changes the current directory (possible and more or less common.) -- LuisR
Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!