Ok, so after my idea of SSHing to a server and using the svn command line client instead of remote desktop (not much of an idea tbh), me and my boss have decided it would be rather better if we could update each project from a single local web-page (this is only for our development server).
Now, I did get this to work (once), however it often does not.
I am using the following code:
ProcessStartInfo start = new ProcessStartInfo("C:\Program Files (x86)\CollabNet\Subversion Client\svn.exe", "update " + UpdatePath);
start.RedirectStandardOutput = true;
start.UseShellExecute = false;
start.ErrorDialog = false;
start.CreateNoWindow = true;
start.WindowStyle = ProcessWindowStyle.Hidden;
Process process = Process.Start(start);
StreamReader output = process.StandardOutput;
string text = output.ReadToEnd();
process.WaitForExit();
Response.Write(text + "<br />" + UpdatePath);
in theory, this should collect the output from the svn app, and write it to the page, however it does not (unless in the rare case when it actually updated, however that is not when I particularly need the output!)
Can anyone spot the problem?
Here is some code taken from one of my apps – its basically just the MSDN sample. (http://msdn.microsoft.com/en-us/library/system.diagnostics.process.outputdatareceived.aspx)