i have an app that populates a textbox from a sql query.
on my sql table, my server location shows as \\disk\path\path2\file.pdf
in my apps textbox it also shows as \\disk\path\path2\file.pdf
but in my code, i have a button that opens the file with Process.Start(scanDLTextBox.Text);
but when im debugging, my textbox shows as scanDLTextBox.Text "\\\\disk\\path\\path2\\file.pdf" string.
because of the extra \
i get the error
The system cannot find the file specified
so my question is, how do i remove the extra \
from the textbox?
Process.Start(scanDLTextBox.Text.Replace(@"\\", @"\"));
doesnt remove the extra \