L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.

@WINDIR

Windows Linux macOS

Syntax

@WINDIR(<parameter>)

Description

This function returns the full path of the Windows directory or any of the Windows shell folders, such as the Desktop, the My Documents folder and so on. It can also return the location of the Windows, System and Temp folders.

The <parameter> value may be one of:

(null) Windows folder
S Windows System folder
T Temporary folder
Desktop User's desktop folder
Personal User's "My Documents" folder
AppData User's Application Data folder
Local AppData User's local Application Data folder
Local Settings User's Local Settings folder
Cache User's Internet Explorer cache folder
Programs User's Start Menu Programs folder

The full list of valid parameters is dependent on the version of Windows, but can be found by examining the result of the command:

LIST REGVALS,x,HCU,Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders.

OK

Unchanged.

Example

%W = @WINDIR()
REM On most systems %W will now contain C:\Windows

See also