Today I ran into a need of deploying a good number of WSPs to SharePoint. Rathering than processing them manually, I have invested a little time to figure out a batch solution. The result is pretty simple:

@echo off
FOR %%f IN (*.wsp) DO IF EXIST "%%f" (
	echo Registering %%f
	"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\stsadm.exe" -o addsolution -filename %%f
)
Advertisements