Run a CMD in C# Winform

TrustGroup-UAE
TrustGroup-UAE used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial