ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • Associating an application with a file extension
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SysRecentDocList (Function)
In french: SysDocRécentListe
Returns the list of recently opened documents.
Example
// Display the list of recently opened documents in LIST_RecentDoc
LIST_RecentDoc = SysRecentDocList()
// Display in LIST_RecentDoc
// the list of recently opened documents and directories
// sorted by date and with the displayed date
Trace(SysRecentDocList(srdlSortDate + srdlDate))
// Displays for example
// C:\MyDoc 20180322105130
// C:\MyDoc\Post.jpg 20180322105130
// C:\MyDoc\Post2.jpg 20180322095020
Syntax
<Result> = SysRecentDocList([<Options>])
<Result>: Character string
List of recently opened documents. This list has the following format:
<Path document 1> + CR + <Path document 2> + CR + ... + <Path document N>
Depending on the options used, this list can also display:
  • the last access date in YYYYMMDDHHmmSS format.
  • the name of the accessed directories.
<Options>: Combinable Integer constants
  • Process mode of paths:
    fPathUNICODE<Result> will be a character string in Unicode format.
    CAUTION: If this option is not specified, the document paths containing strings that cannot be changed into ANSI will be replaced with the corresponding short path.
  • Information displayed in the list:
    srdlDateIn addition to the requested information, <Result> contains the file's last access date in YYYYMMDDHHmmSS format (separated from the element path by a tab).
    srdlDefault<Result> contains the list of last opened documents (file path corresponding to the opened document).
    srdlSortDate<Result> contains the list of last accessed directories and last opened documents (separated by CR), sorted from the most recent one to the oldest one.
    This constant can be combined with the srdlDate constant: in this case, the date of the last access is added (separated from the path by a CR).
Remarks

Associating an application with a file extension

To associate an application with a file extension via the registry, you must create the following keys:
  • "HKEY_CLASSES_ROOT\.ext":
    where ext is the extension.
    The default value corresponds to the type of file (free string).
  • "HKEY_CLASSES_ROOT\type_name":
    where type_name is the name of the type given to the extension.
    The default value corresponds to the description that will be displayed in the "Type" column of the Windows explorer.
  • "HKEY_CLASSES_ROOT\type_name\shell\open\command":
    The default value is the command that will be run by ShellExecute on this type of file. In the command line, the %1 string will be replaced by the path of the file.
Component: wd290std.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help