Previous Topic: Commands, Functions, and Classes According to CategoriesNext Topic: !! Command--Invoke Command or Child Process and Auto-capture Output (Cmdlet)


General AutoShell Commands

This section details the general AutoShell core commands (cmdlets, funclets) in alphabetic order. These general commands are not platform-specific to LPAR or Solaris Zones. AutoShell defines a series of commands that simplify invoking the corresponding tasks.

The following regular JavaScript function call obtains a detailed directory listing of C:\:

ca.aip.direct.directory("C:\\*.*" , "",false,false,false,true) 

The corresponding AutoShell command looks like the following:

dir C:\*.* -l 

Examples

Lists the content of the current directory in the console:

dir *.* 

Assign the directory listing to an array:

arr = dir *.* -retval