location of a program

hi ,

i need to retrive the data of the location of a program.
for example you can choose the folder (maybe craeate it) when you install  a software program to your computer.
i need location of that path

the info of the path may be in registry in that case i need to readdata from registry

so  need to know how to deal with it.

thanks in advance


Answer this question

location of a program

  • Knoen

    If you're asking for the path of the current application: Application.StartupPath (for WinForms).

  • Sachin Phadke

    I'm not sure what you're asking. Is this path required at the time of deployment (via a deployment project) of the application, or at the time of running (runtime)

  • Tim1

    Environment.CurrentDirectory;

    Gets the fully qualified path of the current directory (the directory from which this process starts)



  • location of a program