[Mono-list] wildcard error in System.Diagnostics.Process
amalafrida
amalafrida at gmail.com
Sat Mar 21 17:40:42 EDT 2009
/* wildcard won't work ... any ideas?
directories exist ... with correct permissions ... dir1 contains files ...
error:
/bin/cp: cannot stat `/mnt/dir1/*': No such file or directory
*/
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
class Program
{
public static void Main(string[] args)
{
Process proc = new Process();
proc.StartInfo.FileName = "cp ";
proc.StartInfo.Arguments = "/mnt/dir1/* /mnt/dir2";
proc.Start();
proc.WaitForExit();
proc.Close();
}
}
--
View this message in context: http://www.nabble.com/wildcard-error-in-System.Diagnostics.Process-tp22622855p22622855.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list