Tech and a few other things RSS 2.0
# Friday, February 05, 2010










The Problem:
Getting a Powershell script to run a batch script.

The Solution:
powershell.exe -noexit d:\<path to my batch script>\Reporting_Code_Load.bat

Explanation:
All you need to do is add the line above as is to your Powershell script. The "-noexit" tells the command prompt to stay open, simply remove it if you don't want the command prompt to open.
Friday, February 05, 2010 3:47:22 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
.Net | powershell
Navigation
About the author/Disclaimer
        
My name is Ben Coffman. I'm in love with all things Mac yet I make a living in .NET. I view this as well rounded. When I turn the internet off I focus on family, random hobbies, and sharing moments in life.

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Ben Coffman

Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
All Content © 2010,

Sign In