Automated approach to installing any STP file

Found this useful batch file that automates the installation of any stp file.  All you need to make sure is the batch file is saved in the same folder location as the stp file(s) you would like to install.
 
 
:: Kindler Chase 2008-01-15www.RareGrooveRider.com
:: Installation of all application templates
:: Be sure to run this script from the location the application templates reside.

@ECHO OFF
ECHO This will install all the WSS 3.0 STP Application templates.
ECHO.
ECHO Be sure this script resides in the same directory
ECHO as the application templates!!!
ECHO.
PAUSE
CLS
SET STS=””C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe””
FOR %%G IN (*.stp) DO (
ECHO %%G start
%STS% -o addtemplate -filename %%G -title %%G
ECHO %%G end
ECHO.
ECHO.
)
ECHO.
ECHO Ready to reset IIS.
PAUSE
iisreset -noforce
ECHO.
ECHO.
ECHO That’s all folks!
ECHO.
PAUSE
EXIT

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s