This is a migrated thread and some comments may be shown as answers.

FileName, showing full path not mapped drive letters?

1 Answer 68 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ian Coetzer
Top achievements
Rank 2
Ian Coetzer asked on 09 Mar 2009, 02:57 PM
Hi,
I'm using the following code to return the name of a document and the full path of a selected document:

fileName =

Me.RadUpload1.UploadedFiles(0).GetName()

 

filePath =

Me.RadUpload1.UploadedFiles(0).FileName

Question: If the filePath is something like X:\SomeFolder\SomeDocument.xls, for which X points to a mapped drive like \\servera\
How can I return the filePath with the actual server name? instead of the mapped drive letter?

So I want: \\servera\SomeFolder\SomeDocument.xls,
instead of X:\SomeFolder\SomeDocument.xls,

thanks

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Ian Coetzer
Top achievements
Rank 2
answered on 10 Mar 2009, 06:54 AM
Hi, I solved the problem via www.asp.net forums usage,

http://forums.asp.net/t/1394855.aspx 
Tags
Upload (Obsolete)
Asked by
Ian Coetzer
Top achievements
Rank 2
Answers by
Ian Coetzer
Top achievements
Rank 2
Share this question
or