I am not sure what you meant. If you could please give me an example then it will be nice.
Thanks
You should try to look things up for yourself as well. Did you even
google it?
It's not too hard:
-
using System.Diagnostics;
-
.
-
.
-
.
-
ProcessStartInfo psi = new ProcessStartInfo("path to executable here");
-
psi.UserName = "username";
-
string p = "password";
-
char[] ch = p.ToCharArray();
-
foreach(char c in ch)
-
s.AppendChar(c);
-
psi.Password = s;
-
Process.Start(psi);
-
You should learn to use IntelliSense. It's the popup in Visual Studio that suggests/autofinishes code for you. Type in an object and then a period, and it will show you its methods and members. I've learned more by scrolling through that popup than I have from anything else.
For example, I'd never heard of a SecureString before I tried this. But using IntelliSensee, I figured it out without having to go to the internet. It's a good trick to know.