Id like to create a shortcut on the users desktop to point to a hidden networkdirectory, but to my supprise I couldnt find this function in the file plugin. Is it possible to add it in the file plugin?
Either one of the first 2 lines work in a js file but don`t in the method editor.
Does anyone know a way around this (html???)
Ps every user has his own destination folder therefore I want to initialize it from Servoy. A writeToFile → execute → delete is an alternative but not a very nice one.
Jan Blok:
It is not possible to create shortcuts in Servoy (its very different for each platform and creating shortcuts has nothing todo with Servoy we think)
What you could do is open a browser like:
application.showURL(‘H:\Vanderlande\DPD\Release\Users\RvdV\’)
Although you could convert your code into the VBScript equivalent then simply call that code to run. You can create the VBScript within Javascript and write it out of your Servoy app OR you can carry the VBScript within a BLOB field and simply dump it out into the C:\Windows\Temp or %temp% then execute it.