
creacion de acceso directo
Publicado por EDUARDO (139 intervenciones) el 03/09/2007 15:49:10
hola :tengo esta rutina para crear un acceso directo.
WshShell = CreateObject("WScript.shell")
strDesktop = wshShell.SpecialFolders("Desktop")
wait wind strdesktop
oMyShortCut =WshShell.CreateShortcut(strDesktop+"ACCESO DIRECTO A LEGAJOS.lnk")
oMyShortCut.WindowStyle = 3
oMyShortCut.IconLocation = "e:\prueba\visto.ico"
oMyShortCut.TargetPath = "e:\prueba\legrepetidos.exe"
oMyShortCut.HotKey = "ALT+CTRL+F"
oMyShortCut.Save
en el wait wind que puse veo correctamente el path al escritorio (tenngo w2000)
el tema es que cuando ejecuto el programa no me crea el acceso directo.
necesitaria saber donde esta la falla (el ejecutable y el icono estan en el directorio prueba )
gracias
WshShell = CreateObject("WScript.shell")
strDesktop = wshShell.SpecialFolders("Desktop")
wait wind strdesktop
oMyShortCut =WshShell.CreateShortcut(strDesktop+"ACCESO DIRECTO A LEGAJOS.lnk")
oMyShortCut.WindowStyle = 3
oMyShortCut.IconLocation = "e:\prueba\visto.ico"
oMyShortCut.TargetPath = "e:\prueba\legrepetidos.exe"
oMyShortCut.HotKey = "ALT+CTRL+F"
oMyShortCut.Save
en el wait wind que puse veo correctamente el path al escritorio (tenngo w2000)
el tema es que cuando ejecuto el programa no me crea el acceso directo.
necesitaria saber donde esta la falla (el ejecutable y el icono estan en el directorio prueba )
gracias
Valora esta pregunta


0