Re: OT: Using the 'FILE' protocol?



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
.



Relevant Pages

  • Re: Copy of files gone wild
    ... Dragging is not the problem per se, it's dragging without meaning to while ... What happens is that you have multiple items selected and you're using the ... You either have to practice or set the drag sensitivity differently. ... The "Activation follows mouse" checkbox enables X-Mouse style window ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Copy of files gone wild
    ... Dragging is not the problem per se, it's dragging without meaning to while ... You either have to practice or set the drag sensitivity differently. ... right-click the test icon. ... The "Activation follows mouse" checkbox enables X-Mouse style window ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: resizing problem
    ... In fact if the 'show window contents while dragging' is turned off then the resize event will definitely be fired only once, when the user releases the mouse button on completion of the drag. ...
    (microsoft.public.vb.general.discussion)
  • Re: Network Drive Issue
    ... It was stuck too. ... > Open DOS box and tried to switch drives: ... > At some point the DOS window showed the S: ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Cosmetic Slidey redraw bug
    ... I see the redraw problem. ... Uncheck "Show window contents while dragging". ... mouse over the pin when it happens, and the display will refresh correctly. ...
    (comp.lang.smalltalk.dolphin)