Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need script to auto-install shortcut on desktop from a link in email

Status
Not open for further replies.

Dor100

Technical User
Apr 9, 2001
279
US
Hello, I need a way for users to be able to click a link in a Lotus Notes email message that will result in a shortcut to an internal website being automatically installed on their desktop. The operating system is Windows 2000. Thanks.
 
Do you have a question you want answered?

This is not a script request forum, nor does Tek-Tips have such a forum.

If you have a problem writing a specific part of this script, please let us know, however please do not request that we write a script for you without providing any indication that you have even attempted this yourself.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Are you quite sure that I violated the spirit and intent of the usage guidelines? Do you think this person did, too?: thread615-840100.

Do you think perhaps a question is not a question without the mark at the end? Or do you think I've merely tried to get others to complete a homework assignment for me, as the guidelines refer? Do you require that every post chronicle the efforts to find the answer through other sources before you'll lend the benefit of the doubt that efforts were made? Do you find it so unacceptable that the title of the thread begins with "Need a script..." when that is what would do and someone might be willing to simply point me to a pre-existing one online?

Personally, I tend to give people the benefit of the doubt and ask questions before making a reprimand. You have almost 3000 replies in other threads. Do you suppose we'll find a large percentage of similar remarks there? My guess would be yes, but I'm open to surprises.

If anyone would be willing to help me with this, it would be much appreciated. Thanks.
 
i can only imagine a whole lot of security issues with this -- and with warnings popping up left and right.

if i were a gambling man -- and i do like vegas -- i dont think this can be accomplished the way you are proposing.

but if it is I would most certainly like to see how

zzzzzz
 
Hi mate,

Firstly, if this was not your intention then I apologise, but you would understand if you saw the amount of similar posts where people were simply requesting a script to be made for them, and that is against the intended usage of these forums.

You have almost 3000 replies in other threads. Do you suppose we'll find a large percentage of similar remarks there? My guess would be yes, but I'm open to surprises.
Prepare to be suprised. [noevil]

Anyway, back to the question in hand, not sure if this will help or not:


Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Thanks, if I find a solution I'll let you know how it turns out.
 
Thanks to you as well, Wullie (I made the last post for deecee before your reply had refreshed to the thread). I'll check out your link on Monday and post whatever I come up with next week.
 
I tend to agree with decee's sentiment, so I checked out Wullie's link and one of the simple but effective solutions there is probably a good idea. Then I passed it along to the person with the final call on this. Basically, it involves trusting that a lot of employees and their computers won't have any problem doing a File-->Send-->Shortcut to Desktop after clicking a hyperlink instead of trying to get everyone to do a paste. Now I know some may be thinking why not have it remotely installed, but that's another matter altogether. If I find a useful script, however, I'll post it. Thanks.
 
Very promising:

Found short script to make desktop shortcuts:

set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Home Page.lnk")
oShellLink.TargetPath = "oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+Y"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "Home Page"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save

After saving in Notepad with .vbs extension, double clicking file name in Win Explorer runs script and installs shortcut on desktop. Script above is based on the script found here:


No security alerts or snags of any kind. Now I'd like to find a way to tweak the script to make it an editable .url instead of an uneditable .lnk shortcut, as well as perhaps have a better graphic. Also, wonder what my options are with the "oShellLink.IconLocation = "notepad.exe, 0"" line.

This is looking good so far.
 
What a way to wrap up the day. With a little more digging, found a shorter, cleaner script to make those .lnk's here:

Then, was able to tweak it into editable .url's:

Set ws = WScript.CreateObject("WScript.Shell")
dsktop = ws.SpecialFolders("Desktop")
set scut = ws.CreateShortcut (dsktop & "\Your Web.url")
scut.TargetPath = "scut.save

Hope deecee likes it, and Wullie, too. This was a profitable venture. Can't wait to find out how to add more options to this script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top