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.


object.FileName = file_name_string
variable = object.FileName 


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


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 [ ]