cygstart.exe can't open file:///C:/

Andrey Repin
Thu Jul 7 14:35:00 GMT 2016

Greetings, Brian Inglis!

> Gene Pavlovsky <gene.pavlovsky <at>> writes:
>> On 4 July 2016 at 04:10, Juan Miguel Navarro Martínez wrote:
>>> On 2016-07-04 at 01:51, Gene Pavlovsky wrote:
>>>> cygstart‘s manpage says it’s similar to the Windows command-line start command.
>>>> However, cygstart file:///C:/ results in an error message:  Unable to
>>>> start 'C:\cygwin\c\': The specified file was not found.
>>>> The Windows start command opens file:///C:/ links in the default browser
>>>> without a hitch.

>> Juan, thanks for this, it does work. (on my system I setup `cygdrive` to be
>> `/mnt` using fstab, though).
>> But I think the C:/ syntax should be supported as well. After all, `ls C:/`
>> works correctly on Cygwin.

> cygstart file://C:/ works - read the MS DN and MS KB articles on file URIs
> and shlwapi

Which isn't quite right. "file:" is a protocol, "//" is the foreign host mark,
"[.]/" is "current host's filesystem root".
So, I guess, the CORRECT solution (or, rather, workaround) would be an
explicit "." in host name.

cygstart "file://./C:/"

Works here. Please try it yourself.

With best regards,
Andrey Repin
Thursday, July 7, 2016 17:29:00

Sorry for my terrible english...

More information about the Cygwin mailing list