Good day, I need help.
1. I would like to open up another C# program onclick of button.
2. The other program i wantt to call has the same startup form that the one I'm calling from, how do i bypass the startup form of the program i'm calling with right parameter logins.
3. When trying to call the program from a location i get errors on the path: this seems to work "i:\\app\\test" but if i try this then error: "i:\\app\\test i:\\app\\startup.ini 1" - if i run the location then it's fine "i:\app\test i:\app\startup.ini 1"
Please Assist! Regards
Loading
TrinityPosted Sep 27, 2009, 12:14 PM
string BasePath = Application.StartupPath.ToString();
BasePath = Application.UserAppDataPath;
string ResultingPath = System.IO.Path.Combine(BasePath,"%your application name here%");
System.Diagnostics.Process.Start(ResultingPath);
TrinityPosted Oct 11, 2009, 7:44 AM
ic icPosted Sep 29, 2009, 4:40 AM
I got it going :) Thank You All
string root = Application.StartupPath;
string exePath = System.IO.Path.Combine(root, "i:\\app\\test\\WAREH004.exe");
string argPath = System.IO.Path.Combine(root, "i:\\app\\test\\WAREH004.INI");
Process.Start(exePath, argPath + " 1");
TrinityPosted Sep 29, 2009, 4:31 AM
P:\\test\\C#\\WAREH004.exe P:\\test\\C#\\WAREH004.INI 1?!!!
ic icPosted Sep 28, 2009, 6:23 AM
I get the Error: Cannot find the specified path
string BasePath = Application.StartupPath.ToString();
BasePath = Application.UserAppDataPath;
string ResultingPath = System.IO.Path.Combine(BasePath, "P:\\test\\C#\\WAREH004.exe P:\\test\\C#\\WAREH004.INI 1");
System.Diagnostics.Process.Start(ResultingPath);
I can start - run - location then the program comes up.
Please Assist