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 like to build things: programs, programming teams, programming departments and maybe one day a company with lots of programmers. When I turn the internet off I focus on my family, random hobbies, and sharing moments in life.

Blogs I follow:

1. 2andahalfd.com

2. Jeff Lamarche

3. Scott Hanselman

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

© Ben Coffman

Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
All Content © 2012,

Sign In