I want to start a program with arguments, using wines absolute path.
Code: Select all
"/Applications/Wine Devel.app/Contents/MacOS/wine" "/Users/test/.wine/drive_c/program.exe" "1 2 3 4"
Code: Select all
"/Applications/Wine Devel.app/Contents/MacOS/wine" "/Users/test/.wine/drive_c/program.exe 1 2 3 4"
The context is that I want to use a C# program launch an executable with wine.
Code: Select all
ProcessStartInfo program = new ProcessStartInfo();
program.FileName = "/Applications/Wine Devel.app/Contents/MacOS/wine";
program.WorkingDirectory = "/Users/test/.wine/drive_c/";
program.Arguments = "/Users/test/.wine/drive_c/program.exe 1 2 3 4";
program.UseShellExecute = false;
Process.Start(program);
Is this possible at all?
Thanks alot!