Hyperlink Files

  • Thread starter Thread starter brian
  • Start date Start date
B

brian

I am grabbing file paths from a directory and storing
them into an array. The array then writes the data to a
single column table. (This works) Now I need that file
path in a URL format to navigate to the file. This
program is for an intranet and this will allow us to
click on the URL and the appropriate file will open. I
need to convert (x) into the URL. The files are coming
from the users local hard drive on 'C:\' Can someone
please help.

For Each File In files
'Me.ListBox2.Items.Add(File)
Dim row As New TableRow()
Dim cell As New TableCell()
Dim x As New LiteralControl(File)
cell.Controls.Add(x)
row.Controls.Add(cell)
Table1.Rows.Add(row)
Next



An example file path would be as follows:
x = C:\TrusJobs\2003\43000\43892\Comm\fax.pdf

Thanks
 
brian said:
I am grabbing file paths from a directory and storing
them into an array. The array then writes the data to a
single column table. (This works) Now I need that file
path in a URL format to navigate to the file. This
program is for an intranet and this will allow us to
click on the URL and the appropriate file will open. I
need to convert (x) into the URL. The files are coming
from the users local hard drive on 'C:\' Can someone
please help.

For Each File In files
'Me.ListBox2.Items.Add(File)
Dim row As New TableRow()
Dim cell As New TableCell()
Dim x As New LiteralControl(File)
cell.Controls.Add(x)
row.Controls.Add(cell)
Table1.Rows.Add(row)
Next



An example file path would be as follows:
x = C:\TrusJobs\2003\43000\43892\Comm\fax.pdf

Thanks

Will the local file be in the same place on every user's computer?

Neil
 
Back
Top