Jump to content
Sign in to follow this  
Jason Tallman

Create Windows Internet shortcut on desktop

Recommended Posts

We use Windows internet shortcuts placed on the users desktop to launch our solution from client machines. i.e. fmp://server.local/Solution.fmp12

Currently we do this by hand on each client machine. I was wondering if there is a way to create this using the Send Event script step in Filemaker Pro 12? Clients are using both Windows XP and Windows 7.

Thanks again in advanced.

Share this post


Link to post
Share on other sites

This VB script will do it.. all you have to do is figure out how to trigger it.

Dim FileName

FileName = "MyShortcut"

Set shortcut = CreateObject("WScript.Shell").CreateShortcut(CreateObject("WScript.Shell").SpecialFolders("Desktop") & + "" + FileName + ".lnk")

shortcut.Description = "My shortcut"

shortcut.TargetPath = "C:My Shortcut"

shortcut.Arguments = "/Arguments:Shortcut"

shortcut.Save

Share this post


Link to post
Share on other sites

You can store the content in a global text field, do an "export field contents" to a file with a VBS extension and then use the Send Event script step to to trigger it and delete the VBscript in another Send Event.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.