hello !
I wish to launch a wpf application from another based on some condition (suppose if user says "start "[application code can recognize voice here ] then another WPF application should be launched closing the current wpf application). can somebody help me with this.
thank you .
Loading


VulpesRank #55 · 29.2K reputationPosted Dec 16, 2014, 11:56 PM EST
Sanju SinghRank #6,374 · 268 reputationPosted Dec 17, 2014, 10:56 PM EST
private void Window_Loaded(object sender, RoutedEventArgs e)
{
if( myString == "sensor_ready")
{
System.Diagnostics.Process.Start("D:\\project_work\\project related\\latest work\\displayLayout.sln");
Application.Current.Shutdown();
}
}
what happens is the application folder opens up. i wish to know if i can make other application to run ?
VulpesRank #55 · 29.2K reputationPosted Dec 18, 2014, 1:30 AM EST
If this is the path to the solution file:
"D:\\project_work\\project related\\latest work\\displayLayout.sln"
and you're still debugging the other application, then I'd expect the path of the executable to be something like this:
"D:\\project_work\\project related\\latest work\\displayLayout\\bin\\debug\\displayLayout.exe"
If the other application is in release mode then replace "debug" with "release" in the above path.
However, I'd check that this path is in fact correct before you use it.
Sanju SinghRank #6,374 · 268 reputationPosted Dec 18, 2014, 5:15 PM EST