VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。

@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