Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File:// - File URLs

Status
Not open for further replies.

djdidge

Programmer
May 9, 2001
65
GB
Hi there,

Im embedding file links into my rich text box ... like this... file://c:\test.txt

Now this works fine until i get paths with spaces in... so i tried to replace the spaces with %20
.... like this File://C:\Documents%20and%20Settings\David\Desktop\Test.txt

However, this %20 thing doesnt work.

Ideas?

Regards

DSE
 
This is called a URI, not a URL (the difference is that a URL is only for the internet, a URI encompasses it, adding the ability to access local resources too).

Try file:/// -- sometimes you need the extra slash.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
thx! that seemed to sort most of my issues with it... now just need to figure out how to get the rich text box to detect a 'URI' with spaces.
 
ah nice... just reincorporated the %20
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top