This function returns the type of operating system the script is currently running on.
The function has the following syntax:
platform()
The function returns the system type name in a string.
Example
Verify that a script is being run on Windows:
if(platform()!="Windows")
{
? "This script uses Windows specific features!"
? "Please run on Windows only."
quit
}
start-service -svcName Apache2.2
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |