Storages & Files Path
Path property

Sets/Gets the path where the shortcut will be saved or loaded from.

Syntax:

object.Path = string
variable = object.Path

Examples:

o.Path = "C:\SomeDirecctory"
o.Name = "MyShortcut"
o.Open
' This opens the shortcut C:\SomeDirectory\MyShortcut.lnk 

Remarks:

The name of the shell link's (shortcut) file is determined combining the Path property with one of the Name or FileName properties. This technique is used because the shell links are usually created with human readable names. Most often the applications create several shortcuts in one directory (usually in the Start menu, desktop or somewhere else). So, it is easier to specify the path and the name in separate properties.

Applies to: SFShellLink object

Supported on:

Windows 95/NT and later

 

newObjects Copyright 2001-2006 newObjects [ ]