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,
You can't. And this code will most likely not work on most systems. And if it works, then only on Internet Explorer.