Tema: ayuda!!!
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/06/2008, 09:06
allinavs
 
Fecha de Ingreso: junio-2008
Mensajes: 2
Antigüedad: 15 años, 11 meses
Puntos: 0
Respuesta: ayuda!!!

...si perdon es q no especifique bien.. le estoy dando mantenimiento a una pagina en dreamweaver y necesito crear como un boton q le de la opcion al navegante de crear un shortcut en su propio escritorio de nuestra pagina ya entontre uno pero lo ultilizo y no funciona, no se si estare haciendo algo mal o no c, a ver si me pueden ayudar gracias....

este es el script!!!
gracias
<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%\\notep ad.exe, 0") // Specify the icon.
MyShortcut.Save();
}
</script>
<input type="button" value="Create Shortcut" onclick="CreateShortcut()">
</BODY>