Link to home
Start Free TrialLog in
Avatar of Marina K
Marina K

asked on

how can i get the executable application's path in a specific form? ('\\' instead of '\ ')

I am making a simple application in c#. I need to use the executable application's path in some point. But i need to get it in this form:
C:\\Users\\Marina\\Desktop\\FaceNameGame\\facenamegame\\bin\\Debug

But no matter what i try, i always get it in this form:
C:\Users\Marina\Desktop\FaceNameGame\facenamegame\bin\Debug

I have tried many methods, such as:
IO.Path.GetFullPath(Application.ExecutablePath)
Application.StartupPath
Directory.Getcurrentdirectory()

but nothing had the result that i want. Please could someone help me?
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Marina K
Marina K

ASKER

Thank you all for the help.