AddUSOClasses

You can make USOClasses.

Make method file:
make a text file with text editor named [ClassName].[MethodName].code
Define method parameter:
write the parameters for the first line like param($strname)
Define method process:
write the process in PowerShell for the second or more lines
For example:
MyTestClass.Echo.code
param($strname)
$ret = "This method is defined in " + $this.classname;
$ret += "`n";
$ret += ("Value is " + $strname);
$ret;

The link file is a text of the example.MyTestClass.Echo.txt(the extension .txt -> .code)

Reflect USO class:
Place the class file to the folder.
The folder is got by inputting follows in SALAD.
[SALAD]
$SessionManager.GetValue("system.session.directory.definition.code");
#(for explorer directly)
explorer $SessionManager.GetValue("system.session.directory.definition.code");

Use it:
When the USO class file is placed, we can use it next session.
[SALAD]
$myclass = new mytestclass;
$myclass.echo("ABC");

Last edited Mar 2, 2013 at 2:01 PM by Tom__S, version 13

Comments

No comments yet.