|
FSCommand Advanced Usage |
|
NOTE: FSCommand Usage is now deprecated. It is still available in Zinc™ v2.5 to provide backwards compatibility but should not be exclusively used for new projects. This chapter is included as a point of reference on FSCommand Implementation. All new Zinc™ v2.5 Projects should be scripted with {mdm}Script™ 2.0.
Advanced FSCommand Usage
In the previous Topic, we used a simple FSCommand which only requires one parameter. Many Zinc™ v2 FSCommands require multiple parameters, which must be entered in the correct order.
Example (Literal)
When using multiple literal parameters, care must be taken to add the characters \" before and after each parameter, and also to separate each parameter with a comma:

The command used above enables a DirectX resolution on the users system and has 3 parameters: x resolution, y resolution and the color depth to use. As you can see, using literal values, care must be taken to add \" characters before and after each parameter and also to separate each parameter with a comma.
Example (Var)
Using variables with multiple parameter FSCommands provides an easier method of code management. The variables are declared and then referenced in the FSCommand:

Notice that we can enter the variables name without the need for \" characters. Each parameter is separated with a single comma.