VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。
Strings
In DialogScript, all variables and parameters to commands and functions are strings. Strings that are parameters to commands or arguments to functions may contain references to variables and functions. The contents of variables and the results of functions are inserted into the string, replacing the variable or function references, until all the replacements are complete, after which the resulting string is passed to the command or assigned to a variable.
So if %D contains C: then the string:
Drive %D has @VOLINFO(%D,F)Kb free
would be evaluated to:
Drive C: has 32456Kb free
after which the string "32456Kb free" would be assigned to variable %S.
Note that the symbols % and @ (which are used to denote variables and functions), commas (which are used to split strings into two or more parameters for commands or functions that expect multiple parameters), and brackets (which enclose the parameters of an individual function), cannot normally appear in a string because of the special meaning attached to them. To overcome this, strings can be enclosed in double quotes (").
Text enclosed in double quotes is interpreted simply as text: no variable substitution or function evaluation will be performed. Quotes can appear anywhere in a string to prevent DialogScript from interpreting @ or % symbols as function or variable references, as in this example:
%A = Order @input(Enter quantity,1) "widgets @ "%R" each (incl. "%T"% sales tax")