Online Advertising - ROKR E6 - Deaf Topics - Debt Consolidation - Funbrain

PDA

View Full Version : Create desktop shortcut


hdamis
Oct 11th 2007, 7:31 am
Dear Friends,
I have to create desktop a shortcut for some resons for all clients pc's and it works perfectlly without any problem, but I found that I must enable ActiveX for IE ( Tools->Internet Options->Security->Internet->Custom ).and I don't have a domain to do it from one place so could any one tell me how to create a shortcut without checking ActiveX . I need it very well.
I used this code .
//////////////////////////////
function shortcut()
{

var WshShell = new ActiveXObject("WScript.Shell");
strDesktop = WshShell.SpecialFolders("Desktop");
var oShellLink = WshShell.CreateShortcut(strDesktop + "\\out.url");
oShellLink.TargetPath = "%%OUT%%" ;
oShellLink.Save();
}
/////////////////////////////
Thanks,

nico_swd
Oct 11th 2007, 7:35 am
You can't.

And this code will most likely not work on most systems. And if it works, then only on Internet Explorer.