About Me

I am a Software Engineer presently working in Microsoft as vendor.The main aim of this blog is to Share my knowledge in Sharepoint,AZURE and Silverlight.

Thursday 3 April 2008

How to Use stsadm.exe from any where in the commandprompt.

Some cool stuff i'm going to say which helps to every developer who plays with Features.

To install and activate a Feature we will use stsadm.exe where we found it in the bin folder of 12.

we write some batch files to install the features.

Other than that if i need to install a feature i used to go to the Feature folder and paste the stsadm.exe in the respective feature folder and executing from there.

Today ill say u one thing where we can execute stsadm.exe from any where that means we are going to make availiability of stsadm through out the folders.

just we are making it as environment variable to do that follow the steps below:

Goto Start->Settings-> Controlpanel->System.

Click on advanced tab.

Click on Environment Variables button

Select Path in the System variables section and click on edit and append the following in the variable path :

;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

and click ok and close all the windows.

now you can use the stsadm.exe from any where.

cheers. :)

No comments: