Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Batch file execution with PowerShell Question

$
0
0

I run scripts in folders - Each folder(Build 01, Build 02 etc) contains a batch file that executes the ps1 file in that particular folder.  I would like to have a batch file that executes each ps1 file in each folder in order.

c:/Build 01 - sp_script.ps1
c:/Build 02 - sp_script.ps1
c:/Build 03 - sp_script.ps1

My Batch file contains:
cd /d %~dp0
powershell.exe -File sp_script.ps1
pause


Viewing all articles
Browse latest Browse all 10624

Trending Articles