79532725

Date: 2025-03-25 05:01:22
Score: 1
Natty:
Report link

How to Set and Retrieve an Argument String from Another Application using C#

ProcessStartInfo processInfo = new ProcessStartInfo()
{
    FileName = "Path to executable.exe",        
    Arguments = "ArgumentString",
    RedirectStandardOutput = true,
    RedirectStandardError = true
};

string[] args = Environment.GetCommandLineArgs();

write the above code in the executable solution.

Happy Coding :)

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Sharuk Basheer