Archi Forum

Archi Plug-ins => jArchi => Topic started by: Manj75 on June 14, 2021, 09:55:19 AM

Title: Support of folder shortcut links in jArchi Script Manager
Post by: Manj75 on June 14, 2021, 09:55:19 AM
I tried to create a folder shortcut link in the scripts folder and noticed that it is not supported, i.e. double clicking will not navigate to the linked folder.

I was hoping to create a structure of baselined scripts for the organisation in the coArchi GIT workspace so that these scripts can be committed/published to the remote repo.  Advising all in the team to set their scripts folder to that in the collaboration workspace.  The benefit of this is that it enables all to access the same set of well controlled scripts.

Having set the above I also want to encourage script creation, but without triggering coArchi to detect local changes in the workspace scripts folder all the time.  My best approach was to have a separate folder outside of the set scripts folder and have a shortcut link that is not traversed when checking changes for GIT commit.

I'd welcome any alternative/better approach to achieve this.
Title: Re: Support of folder shortcut links in jArchi Script Manager
Post by: Jean-Baptiste Sarrodie on June 14, 2021, 11:52:59 AM
Hi,

I suppose you're using Windows. Try creating a symbolic link (https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink) instead of a shortcut, this might work.

Regards,

JB
Title: Re: Support of folder shortcut links in jArchi Script Manager
Post by: Phil Beauvoir on June 14, 2021, 12:10:51 PM
Quote from: Jean-Baptiste Sarrodie on June 14, 2021, 11:52:59 AM
Hi,

I suppose you're using Windows. Try creating a symbolic link (https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink) instead of a shortcut, this might work.

Regards,

JB

Hi JB,

that won't work. 

You can create shortcuts to script files by dragging and dropping the file from the desktop into the Scripts Manager (you get an option to create links) but this doesn't work for folders. I think there is a reason for this, something to do with relative paths in scripts.

Phil
Title: Re: Support of folder shortcut links in jArchi Script Manager
Post by: Jean-Baptiste Sarrodie on June 14, 2021, 12:25:48 PM
Hi Phil,

I don't speak about shortcut (which are files of their own and must be managed at the client application level) but links which are managed at the file system level (exactly like Linux or Mac OS). This is less known on Windows and requires to use command line to create them.

That being said, I didn't tried for this specific case.

Regards,

JB
Title: Re: Support of folder shortcut links in jArchi Script Manager
Post by: Jean-Baptiste Sarrodie on June 14, 2021, 13:00:53 PM
Hi,

I've just tested with "junction" link and it works! It would be best to use directory symbolic links (seems to have less potential issues) but I don't have the privilege on my (company) laptop.

Regards,

JB
Title: Re: Support of folder shortcut links in jArchi Script Manager
Post by: Phil Beauvoir on June 14, 2021, 14:24:01 PM
Quote from: Jean-Baptiste Sarrodie on June 14, 2021, 13:00:53 PM
Hi,

I've just tested with "junction" link and it works! It would be best to use directory symbolic links (seems to have less potential issues) but I don't have the privilege on my (company) laptop.

Regards,

JB

Nice! Thanks for investigating. :-)
Title: Re: Support of folder shortcut links in jArchi Script Manager
Post by: Manj75 on June 14, 2021, 15:57:20 PM
JB - you're a Star, the suggestion worked perfectly.

on Win in cmd (Admin) use:

mklink /D <Link> <Target_Path>

works a treat - I'm happy  8)