Avatar of TrustGroup-UAE
TrustGroup-UAE
 asked on

Run a CMD in C# Winform

Hi Exeperts,

Hope everyone is well?

Im banging my head trying to find the answers for this one!

I need to be able to run a command in C# (PSEXEC File). I need to be able to run it as the following:-

C:\Windows\system32\PsExec -u "string.username" -p "string.password" cmd /c "msiexec.exe /i string.filepath string.setup.msi TRANSFORMS=string.transforms /qb"

string.username, string.password, string.filepath, string.setup.msi, string.transforms are all strings within my application.

could somebody possible point me at somes example code or share some with me?

Cheers
TME
C#.NET ProgrammingProgramming

Avatar of undefined
Last Comment
_TAD_

8/22/2022 - Mon
SOLUTION
Snarf0001

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
_TAD_

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes