No lo he probado, pero ahí va eso:
Código:
some sample thingy I found:<BODY>
<script language="javascript">
function CreateShortcut(){
var WSHShell = new ActiveXObject("Wscript.Shell"); //Get the scripting host.
var DesktopPath = WSHShell.SpecialFolders("Desktop")// Get the desktop folder.
var MyShortcut = WSHShell.CreateShortcut(DesktopPath + "\\Shortcut to notepad.lnk") // Set shortcut object properties and save it
MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings ("%windir%\\notepad.exe") // Path to Notepad.exe.
MyShortcut.WorkingDirectory = WSHShell.ExpandEnvironmentStrings ("%windir%") // Set working folder.
MyShortcut.WindowStyle = 3 // Full screen (use 4 for windowed).
MyShortcut.IconLocation = WSHShell.ExpandEnvironmentStrings("%windir%\\notepad.exe, 0") // Specify the icon.
MyShortcut.Save();
}
</script>
<input type="button" value="Create Shortcut" onclick="CreateShortcut()">
</BODY>
This will only work on Windows machines, natch. Full windows scripting documentation at: http://msdn.microsoft.com/library/de...ScriptHost.asp
Regards,
Marc.