Have you tried:
string absolute = Path.GetFullPath(relative);
? Note that that will use the current working directory of the process, not the directory containing the executable. If that doesn’t help, please clarify your question.
More Related Contents:
- How to get the value of @DropDownListFor in [HttpPost] at controller [duplicate]
- how to display the statistics about all the files in a folder in C# [closed]
- C# regex replace of numbers and units
- Dependency Inject (DI) “friendly” library
- What’s the use/meaning of the @ character in variable names in C#?
- Entity Framework 5 Updating a Record
- Keeping ASP.NET Session Open / Alive
- Associating enums with strings in C#
- Remove weird characters ( A with hat) from SQL Server varchar column
- What is the C# equivalent of friend? [duplicate]
- C# little endian or big endian?
- Multi value Dictionary
- How to choose between private and protected access modifier to encapsulate members between base and childs classes?
- Calling a SOAP service in .net Core
- Cannot convert lambda expression to type ‘System.Delegate’
- A call to PInvoke function ‘[…]’ has unbalanced the stack
- Is it possible to execute an x86 assembly sequence from within C#?
- Random entry from dictionary
- How do I automate SAP GUI with c#
- Format date in C#
- Troubleshooting “program does not contain a static ‘Main’ method” when it clearly does…?
- Start android service from Unity3D code
- @Html.HiddenFor does not work on Lists in ASP.NET MVC
- Can I use extension methods and LINQ in .NET 2.0 or 3.0?
- C# List – Removing items while looping / iterating [duplicate]
- Json.Net adding $id to EF objects despite setting PreserveReferencesHandling to “None”
- Getting files by creation date in .NET
- ConfigurationManager.OpenExeConfiguration – loads the wrong file?
- Catching Error when using Task.Factory
- Get ListView Visible items