Cmd /c filepath.cmd
Are you required to use PowerShell for this?
Start /min /wait filepath.cmd
Might be a better fit...
Regards,
Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com
From: James Rankin [mailto:[email protected]]
Sent: Wednesday, March 02, 2011 7:00 AM
To: NT System Admin Issues
Subject: PowerShell noob question
Can I use the PowerShell command start-process with the -WindowStyle Hidden
parameter to run an actual Windows shell script (.cmd)? I only seem to be able
to get it to run cmd.exe at the moment....
Forgive my utter PS noob-ness, I have never used it before (although I do have
some books on it in the house somewhere waiting for me to read them). I am
trying to get a batch file to execute without the user seeing it.
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin