If OS Version
Not all Microsoft operating systems work the same. Some things function differently in each OS. The "If OS Version" command can help with this problem. A macro can be tailored to the operating system of the user.
Script Editor > Expand Logic Category > If OS Version
In the sample below we created a simple macro that does something different based on the operating system in use. This is how it would be displayed in the Scripting Editor. This macro basically states that if running Windows Server 2012 or 2016, then run the macro named Server. The OR command allows for selection between two or more If commands. If running Windows 7, 8.1 or 10, run the macro named Win10.
Sample Macro
If OS Version is Windows Server 2012 Or If OS Version is Windows Server 2016 Macro Run: Server Else If OS Version is Windows 7 Or If OS Version is Windows 8.1 Or If OS Version is Windows 10 Macro Run: Win10 End If End If |