Very Good batch file to make the deployment progress easy
@echo off
SET SPDIR=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12
IF [%1]==[-add] ("%SPDIR%\bin\stsadm.exe" -o addsolution -filename %2\%3)
IF [%1]==[-remove] ("%SPDIR%\bin\stsadm.exe" -o deletesolution -name %2)
IF [%1] == [-upgrade] ("%SPDIR%\bin\stsadm.exe" -o upgradesolution -name %3 -filename %2\%3 -immediate -allowGacDeployment)
IF [%1]==[-deploy] (
IF NOT [%4] == [] ("%SPDIR%\bin\stsadm.exe" -o deploysolution -name %3 -immediate -allowGacDeployment -allowCasPolicies -url %4)
IF [%4] == [] ("%SPDIR%\bin\stsadm.exe" -o deploysolution -name %3 -immediate -allowGacDeployment -allowCasPolicies)
"%SPDIR%\bin\stsadm.exe" -o execadmsvcjobs )
IF [%1]==[-retract] (
IF NOT [%3] == [] ("%SPDIR%\bin\stsadm.exe" -o retractsolution -name %2 -immediate -url %3)
IF [%3] == [] ("%SPDIR%\bin\stsadm.exe" -o retractsolution -name %2 -immediate)
"%SPDIR%\bin\stsadm.exe" -o execadmsvcjobs)
:end












