Windows: finding out whether a folder is a junction point

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Bruce27
Posts: 7
Joined: Thu Nov 08, 2018 11:49 am

Windows: finding out whether a folder is a junction point

Post by Bruce27 » Tue Jun 22, 2021 8:07 am

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!

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Tue Jun 22, 2021 11:29 am

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.
Image

Bruce27
Posts: 7
Joined: Thu Nov 08, 2018 11:49 am

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

Post by Bruce27 » Tue Jun 22, 2021 1:50 pm

Thank you for that helpful reply! I'll work with the shell, then.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Tue Jun 22, 2021 2:18 pm

If it offers you any consolation, I use shell a LOT.
Image

Bruce27
Posts: 7
Joined: Thu Nov 08, 2018 11:49 am

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

Post by Bruce27 » Tue Jun 22, 2021 2:40 pm

That's useful to know!

Post Reply

Return to “Windows”