Author Topic: Support of folder shortcut links in jArchi Script Manager  (Read 153 times)

Manj75

  • Senior Member
  • ****
  • Posts: 152
Support of folder shortcut links in jArchi Script Manager
« 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.

Jean-Baptiste Sarrodie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 695
  • Archi Evangelist and Contributor. Visionary.
    • About me...
Re: Support of folder shortcut links in jArchi Script Manager
« Reply #1 on: June 14, 2021, 11:52:59 AM »
Hi,

I suppose you're using Windows. Try creating a symbolic link instead of a shortcut, this might work.

Regards,

JB
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1558
  • Code Punk
    • Archi
Re: Support of folder shortcut links in jArchi Script Manager
« Reply #2 on: June 14, 2021, 12:10:51 PM »
Hi,

I suppose you're using Windows. Try creating a symbolic link 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
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Jean-Baptiste Sarrodie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 695
  • Archi Evangelist and Contributor. Visionary.
    • About me...
Re: Support of folder shortcut links in jArchi Script Manager
« Reply #3 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
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Jean-Baptiste Sarrodie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 695
  • Archi Evangelist and Contributor. Visionary.
    • About me...
Re: Support of folder shortcut links in jArchi Script Manager
« Reply #4 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
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1558
  • Code Punk
    • Archi
Re: Support of folder shortcut links in jArchi Script Manager
« Reply #5 on: June 14, 2021, 14:24:01 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. :-)
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Manj75

  • Senior Member
  • ****
  • Posts: 152
Re: Support of folder shortcut links in jArchi Script Manager
« Reply #6 on: June 14, 2021, 15:57:20 PM »
JB - you're a Star, the suggestion worked perfectly.

on Win in cmd (Admin) use:

Code: [Select]
mklink /D <Link> <Target_Path>
works a treat - I'm happy  8)