Storages & Files FileName
FileName read/write property

Sets/gets the shortcut's file name (not full path name - only the file name) with the file extension.

Syntax:

object.FileName = file_name_string
variable = object.FileName 

Examples:

object.Path = C:\MyDirectory
object.FileName = "My Shortcut.lnk"
' This means the shortcut file is C:\MyDirectory\My Shortcut.lnk

Remarks:

Usually the application should use the Name property instead. However if non-standard file extension is desired this property will help. Also if you need to obtain the actual file name composed for the shortcut you can read it from this property.

Applies to: SFShellLink object

Supported on:

Windows 95/NT and later

 

newObjects Copyright 2001-2006 newObjects [ ]