question

SharpWindows avatar image
0 Votes"
SharpWindows asked SharpWindows answered

Program Startup Parameters (from another program)

Hello,
i'd like to start a program "giving" to it parameters like
System.Diagnostics.Process.Start(@"C:\Windows\explorer.exe","C:\Users"); or
System.Diagnostics.Process.Start(@"C:\Program Files\Microsoft\Edge\Application\msedge.exe","www.google.it");
Thanks

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@VBnetcoder-0336
Is there something wrong with the current code?
This is the commonly used method of calling other applications.
If there is more than one parameter, use spaces to separate them.

 Process.Start(@"c:\test.exe", "Hello World");// two parameters
1 Vote 1 ·

1 Answer

SharpWindows avatar image
0 Votes"
SharpWindows answered

Thanks @TimonYang-MSFT for answering
ok, nice

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.