Connect with me
Search
Twitter Feed
Navigation
« Weekly Training - Unit Testing and Mock Frameworks | Main | Weekly Training - LINQ & Silverlight »
Thursday
May082008

Tip - Run batch files from solution explorer with PowerShell

Quick tip for those of you who use a batch file to regenerate your data access layer.

You might have noticed that if you try to run (double click) a batch file from the solution explorer window it just opens the batch file in a text editor.

To make it actually run you:

  1. Right click the batch file
  2. Select “Open With…”
  3. Click “Add…”
  4. In “Program name” put the path of PowerShell (“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe”)
  5. In “Friendly name” type in “PowerShell”
  6. Click OK

Now when you double click your batch file it will automatically execute.

Resources

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>