Is it possible to get a full path with double backslash by using Path.GetFullPath
? Something like this:
C:\\Users\\Mammamia\\Videos\\Documents\\CFD\\geo_msh\\cubeOp.txt
instead of this:
C:\Users\Mammamia\Videos\Documents\CFD\geo_msh\cubeOp.txt
Or is there any other method?
Do you mean this?
Path.GetFullPath(path).Replace(@"\", @"\\");
C:\\Users\\Mammamia\\Videos\\Documents\\CFD\\geo_msh\\cubeOp.txt
is not a valid path, so I'm not sure why you'd want it, but:
Path.GetFullPath(yourPath).Replace("\\", "\\\\");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With