troubleshooting Question

vb.net execute CMD command without CMD!!

Avatar of ceMo89
ceMo89 asked on
Programming.NET ProgrammingVisual Basic.NET
4 Comments1 Solution9047 ViewsLast Modified:
Hey all,
I've written a script... the script exutes a CMD command (for example auditpol.exe at WIN VISTA) but I don't want that the the CMD will be shown..... the command should be exute the CMD invisible...or something else....
I hope you guys can help me.....

ceMo

Dim myprocess As System.Diagnostics.Process = New System.Diagnostics.Process()
        myprocess.StartInfo.FileName = "auditpol.exe"
        myprocess.StartInfo.RedirectStandardOutput = True
        myprocess.StartInfo.UseShellExecute = False
        myprocess.StartInfo.Arguments = "/get /category:*"
        myprocess.Start()
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros