Resumen Icono en el escritorio (Windows Script Host)

Mensaje enviado por "Alberto Vernieri" <AVernieri@juncalnet.com.ar>

Hola!

Aquí va la documentación de la función...

Saludos
Alberto

Microsoft Windows Script Host 2.0 Language Reference

--------------------------------------------------------------------------------

CreateShortcut Method
Creates an object reference to a shortcut or URLshortcut.

object.CreateShortcut(strPathname)

Arguments
object

WshShell object.

strPathname

Path and file name of the shortcut being created.

Remarks
The CreateShortcut method creates a WshShortcut object and returns it. This method can be used to create a new shortcut or open an existing one to modify its properties. A Windows shortcut must have the extension ".lnk". If the shortcut title ends with ".url", a WshURLShortcut object is created.

Example
The following example demonstrates the use of a single .wsf file for two jobs in different script languages (VBScript and JScript). The functionality of both jobs is the same * each creates a shortcut to the script being run, and a URLShortcut to www.microsoft.com:












For more information, see Running Your Scripts.

See Also
WshShortcut Object | WshUrlShortcut Object

Applies To: WshShell Object


--------------------------------------------------------------------------------
©2000 Microsoft Corporation. All rights reserved.


>>> "Alberto M. Vernieri (ar)" <avernieri@interprov.com> 23/05/01 23:38 >>>
Hola!

Hacerlo vía API's es bastante complejo...

Sin embargo, uno de los objetos Shell de Scripting tiene un método que lo hace más o menos potable.
Mañana me fijo en la documentación que tengo en el laburo y te la mando.

Otra variante es fijarse como lo hace el setup1. (El del kit de instalacion), buscalo en tu directorio setupkit, es un proyecto VB...

Saludos
Alberto

----- Original Message -----
From: <tramirez@terra.com.pe>
To: <visualbasic-esp@yahoogroups.com>
Sent: Wednesday, May 23, 2001 3:45 PM
Subject: (VB-ESP) Icono en el escritorio


Hola amigos:

He buscado en la ayuda que tengo y no he podido encotnrar cómo poner
un icono de acceso directo en el escritorio. Si pudieran ayudarme les
estaría muuuy agradecido.

Thomas Ramirez



Resumen Resumen

Visual Basic Página de Visual Basic

Página principal Página principal

www.jrubi.com