A
Alan T
I have a command line:
myUtility.exe -1 -x myUtility.xml C:\Temp\MyDoc.doc > C:\Temp\MyDoc.txt
It works fine in the command prompt (ie. DOS prompt), it converted a doc
file into test file.
However, if I run in C#:
System.Diagnostics.Process.Start("myUtility.exe", "-1 -x myUtility.xml " +
@"C:\Temp\MyDoc.doc" + " >" + @"C:\Temp\MyDoc.txt");
That failed to created a output text file.
Any idea?
I put the myUtility.exe into my C# executable directory, so it is able to
find this and also the xml file. In addition, there is no exception raised
so I think it is executed successfully.
myUtility.exe -1 -x myUtility.xml C:\Temp\MyDoc.doc > C:\Temp\MyDoc.txt
It works fine in the command prompt (ie. DOS prompt), it converted a doc
file into test file.
However, if I run in C#:
System.Diagnostics.Process.Start("myUtility.exe", "-1 -x myUtility.xml " +
@"C:\Temp\MyDoc.doc" + " >" + @"C:\Temp\MyDoc.txt");
That failed to created a output text file.
Any idea?
I put the myUtility.exe into my C# executable directory, so it is able to
find this and also the xml file. In addition, there is no exception raised
so I think it is executed successfully.