I need to capture the UNC for the Server I am running my app on to determine if it is a QA or PROD Environment. When I use the following code, I only get the drive path, not the actual server path.
// Get the current directory.
string path = Directory.GetCurrentDirectory();
I also have the following .NET Namespaces
using System;
using System.IO;
using System.Text;
Instead of returing:
\\prodserver\Shared\error_logs
I get L:\Shared\error_logs
Any help will be appreciated.
Thanks,
John
John Pasko
john@rts-sd.com
"No matter where you go, there you are."
// Get the current directory.
string path = Directory.GetCurrentDirectory();
I also have the following .NET Namespaces
using System;
using System.IO;
using System.Text;
Instead of returing:
\\prodserver\Shared\error_logs
I get L:\Shared\error_logs
Any help will be appreciated.
Thanks,
John
John Pasko
john@rts-sd.com
"No matter where you go, there you are."