Re: OT: Using the 'FILE' protocol?
- From: Terry Pinnell <terrypinDELETE@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 13:41:58 +0100
john coates <coates@xxxxxxxxxx> wrote:
>Hi,
>
>On Thu, 22 Sep 2005 11:08:07 +0100, Terry Pinnell
><terrypinDELETE@xxxxxxxxxxxxxxxxxxx> wrote:
>
>>But it fails if there are any spaces in the path
>>or filename, such as
>>'file://D:/Docs/SUNDRY/Internet Radio/BBC stations etc.txt'
>>
>>Anyone know how to get around that please? Placing it in quotes didn't
>>work.
>
>Replace the space with the hexadecimal code for a space, which is:
>%20
>
>Also, if seem to remember that formally you have to use a vertical
>line character after the drive letter rather then a colon.
>Thus:
>'file://D|/Docs/SUNDRY/Internet%20Radio/BBC%20stations%20etc.txt'
>
>But within windows applications the colon mostly seems to work.
>
>Succes,
>
>Bas
Thanks both. That looked *so* right. And the text turned blue, just as
it does with a URL. But sadly, on r-clicking and choosing Open,
TextPad didn't like it: "The system cannot find the path specified."
BTW, changing the colon to | was a retrograde step (it lost the rest
of the blue text).
One other thought was along the lines of changing it to its 'DOS'
name, the one with ~ characters and serial numbers. I used to know
some way of generating that abbreviated 'no blanks' name
automatically. Something like dragging it into a DOS window? But just
tried dragging that file into a Win XP Command Prompt window and it
appears with the full name, so maybe I'm imagining it.
I've emailed Keith MacDonald, TextPad's author, to see if he can shed
light. Could be it's impossible.
--
Terry Pinnell
Hobbyist, West Sussex, UK
.
- Follow-Ups:
- Re: OT: Using the 'FILE' protocol?
- From: Richard H.
- Re: OT: Using the 'FILE' protocol?
- References:
- OT: Using the 'FILE' protocol?
- From: Terry Pinnell
- OT: Using the 'FILE' protocol?
- Prev by Date: Re: operational amplifier
- Next by Date: Re: Brilliant idea needed!!!
- Previous by thread: Re: OT: Using the 'FILE' protocol?
- Next by thread: Re: OT: Using the 'FILE' protocol?
- Index(es):
Relevant Pages
|