Page 1 of 1

Windows: finding out whether a folder is a junction point

Posted: Tue Jun 22, 2021 8:07 am
by Bruce27
Is there a function in LiveCode that can return information on whether a folder is a junction point in Windows? It seems that the "long folders" function doesn't give this information.

I can see how one could do this using the Shell command and then reading the results of a dir command in the Windows shell, but it would be handy if LiveCode has a built-in function that can do this.

Thanks in advance for the help!

Re: Windows: finding out whether a folder is a junction point

Posted: Tue Jun 22, 2021 11:29 am
by bogs
Bruce27 wrote:
Tue Jun 22, 2021 8:07 am
I can see how one could do this using the Shell command and then reading the results of a dir command in the Windows shell, but it would be handy if LiveCode has a built-in function that can do this.
I actually went and learned how to even create a junction folder, just to see what you were talking about heh. The short answer is "I don't think so".

The longer answer would be that the shell is there just for this kind of issue, where you have a need for OS specific things, and junction folders will only ever be found on Windows systems, so parsing the dir command through shell gives you everything you need to make the determination.

Good luck.

Re: Windows: finding out whether a folder is a junction point

Posted: Tue Jun 22, 2021 1:50 pm
by Bruce27
Thank you for that helpful reply! I'll work with the shell, then.

Re: Windows: finding out whether a folder is a junction point

Posted: Tue Jun 22, 2021 2:18 pm
by bogs
If it offers you any consolation, I use shell a LOT.

Re: Windows: finding out whether a folder is a junction point

Posted: Tue Jun 22, 2021 2:40 pm
by Bruce27
That's useful to know!