how can i get the root folder for my program after setup
-
hi every body i want know how can i get the path of the folder which the program start from it after install example the default directory for any program is : c:\program files\*****\**** but user may change this path to any another path my question is how can i get this path i have tried (Environment.CurrentDirectory); but it didn`t work it returned by (My documents path) any body can help me ??
-
hi every body i want know how can i get the path of the folder which the program start from it after install example the default directory for any program is : c:\program files\*****\**** but user may change this path to any another path my question is how can i get this path i have tried (Environment.CurrentDirectory); but it didn`t work it returned by (My documents path) any body can help me ??
Application.StartupPath works under most situations. Environment.CurrentDirectory only gets the current working directory - nothing to do with the application itself.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog) -
Application.StartupPath works under most situations. Environment.CurrentDirectory only gets the current working directory - nothing to do with the application itself.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)thank you davey it`s worked with me