I am writing a plug-in for a software using C#. My plug-in generates a directory, containing a couple of text files, that I need to transfer to a computational cluster. At the moment I am transferring the files manually with the PowerShell (or the Ubuntu plug-in for Windows) using "scp -r -P location/on/windows location/on/cluster", but I would like to do this step automatically by including it in my plug-in.
I have looked around online for guidance and I have found some helpful documentation, but I am still quite lost.
So far I've managed to open the shell, but how to add a sequence of commands I still don't understand.
if(x)
}
OpenPowerShell(@"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe");
}
static void OpenPowerShell(string path)
{
Process.Start(path);
}
Could someone please help me out with this or point to some helpful documentation?
Thanks, David