Tip - Run batch files from solution explorer with PowerShell
Some thoughts scribbled down on Thursday 08 May 2008 at 03:06 PM
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:
- Right click the batch file
- Select "Open With..."
- Click "Add..."
- In "Program name" put the path of PowerShell ("C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe")
- In "Friendly name" type in "PowerShell"
- Click OK
Now when you double click your batch file it will automatically execute.



Comments
There are currently no comments.