Skip to main content

.NET

You can make use of C# .NET inside the scripts.

Here are some examples of using C#

List

var ListOfString = System.Collections.Generic.List(System.String);
var list = new ListOfString();
for(let arg of arguments){
list.Add('' + arg);
}
Logger.ILog('List count: ' + list.Count);

Creating A Directory

if(System.IO.Directory.Exists(dest) == false)
System.IO.Directory.CreateDirectory(dest);

Listing Files

let allFiles = System.IO.Directory.GetFiles(src, "*.*", System.IO.SearchOption.AllDirectories);
for (let newPath of allFiles)
{
System.IO.File.Copy(newPath, newPath.replace(src, dest), true);
}