Batch file for retracting and deploying solutions

Just pass this the arugments of “action url WSPfilename” and save yourself some typing.

=========================

:begin

@echo off

set action=%1
set url=%2
set name=%3

@set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;

echo %1%
echo %Path%

IF .%1==.retract STSADM.EXE -o retractsolution -immediate -name %name% -url %url%

IF .%1==.delete STSADM.EXE -o deletesolution -name %name%

IF .%1==.add STSADM.EXE -o addsolution -filename %name%

IF .%1==.deploy STSADM.EXE -o deploysolution -name %name% -url %url% -immediate -allowGACDeployment

:END

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s