The Interpreter class interprets a given set of commands from the specified file, using an InterpreterCommandFound callback method.

Example

 

public void UseInterpreter()
{
	Interpreter i = new Interpreter("code.gcil", Callback);
	i.Start();
}
void Callback(string cmd, string[] args)
{
	string arg = "";
	foreach(string a in args)
		arg += a + " ";
	Process.Start(cmd, arg);
}
Example Code for "code.gcil"
cd
/d|E:\Docs
Document.docx

shutdown
/i|/m|\\SERVER

Last edited Jun 21, 2012 at 2:28 PM by nmertin, version 3

Comments

No comments yet.