Cygwin tool to differ junctions from soft links?

Doug Henderson djndnbvg@gmail.com
Fri Nov 17 01:59:41 GMT 2023


> On Wed, Nov 1, 2023 at 10:14 AM Martin Wege <martin.l.wege@gmail.com> wrote:
> >
> > Good morning!
> >
> > Does Cygwin have a command line tool (Scriptable!) which can be used
> > to differ between soft links and Windows junctions?
> >
> > Thanks,
> > Martin

Cygwin itself does not have a command, that I know of, to do this.

However, you can use the windows command shell to call its internal
commands. In bash, e.g.

$ /cygdrive/c/Windows/System32/cmd.exe /c dir /a:l /b

shows all the junctions in my windows user home folder when  I am there.

The windows dir command can list links and junctions. The mklink
command documentation at https://ss64.com/nt/mklink.html has more
information than the "mklink/?" help text about links.

HTH

Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com


More information about the Cygwin mailing list