Tuhin Paul
Which of the following is the correct syntax to get the application startup path in C#?

Which of the following is the correct syntax to get the application startup path in C#?
A) Application.StartPath
B) Application.GetStartPath()
C) Application.StartupPath
D) Application.Path

By Tuhin Paul in .NET on Apr 15 2023
  • Tuhin Paul
    May, 2023 7

    C) Application.StartupPath

    The correct syntax to get the application startup path in C# is Application.StartupPath. This property returns a string containing the full path to the directory that contains the executable file for the current application.

    • 1
  • Kushal Singh
    May, 2023 2

    string path = AppDomain.CurrentDomain.BaseDirectory;

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS