Showing posts with label Script. Show all posts
Showing posts with label Script. Show all posts

Wednesday, November 26, 2008

Where is GACUtil ?

Scenario:
You want to automate few things in your developemt environment and one common thing you want to do is to push binaries to GAC easily.

Solution:
You can use GACUtil.exe , but where is it.

Look at following places
1. C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\
2. C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\Bin\
3. C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
4. C:\Windows\Microsoft.NET\Framework\v1.1.4322
5. More google

Code(PushToGAc.bat):

@SET GACUTIL="C:\Windows\Microsoft.NET\Framework\v1.1.4322\gacutil.exe"

%GACUTIL% /u "MyDllName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=53f6ae95f6ddsa1"

%GACUTIL% -I bin\debug\MyDLLName.dll

cscript c:\windows\system32\iisapp.vbs /a "[App_Pool_Name]" /r

Article:

Wednesday, August 27, 2008

Recycling IIS Application pool from command line

Quick Tip:
You want to recycle your IIS Application Pool

Command Line:

"%windir%\system32\iisapp.vbs" /a "SharePoint - 80" /r


where "SharePoint - 80" is the application to recycle.

Friday, August 22, 2008

Set PATH variable for STSADM

Scenario:
We need to run STSADM command and need to navigate to 12 Hive to access it. Another shortcut is to set the PATH environment variable for the 12 HIVE

Solution:


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

Create 12 HIVE using Script

Scenario:
You want to create a blank SharePoint 12 Hive structure

Script:

md GAC
md 12
cd 12

md TEMPLATE
cd TEMPLATE

md CONTROLTEMPLATES
cd CONTROLTEMPLATES
md CLIENT
cd..

md FEATURES

md LAYOUTS
cd LAYOUTS
md CLIENT
cd..

md IMAGES
cd IMAGES
md CLIENT
cd..

md SiteTemplate

md 1033
cd 1033
md xml

cd..
cd..
cd..