Add stsadm.exe to paths, in other words, make Windows able to execute stsadm no matter what folder you are in.
Click Start > Control panel > System > Advanced system setings
Under “System Variables” click Path (You will need to scroll down a bit). Click edit. At the end of the line add:
;”C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\BIN”
The “old way” of doing this was to enter the following in a command prompt:
path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\BIN”;%PATH%
You add the SharePoint BIN folder to the paths system variable, and the ;%PATH% makes sure that you only append this this new folder to the paths variable. You don’t replace it. So remember the last ;%PATH%!
The downside is that Windows “Forgets” this path when done through console as soon as its closed. You need to add it to the autoexecute.nt (or .bat depending on OS) for it to be remembered, but then you need to reboot too.
Related posts:
- Stsadm is not recognized as an internal or external command, operable program or batch file.
- Open command prompt for specific folder using Windows Explorer (Command To Here)
- Access SharePoint API from Console Program – Program Against the WSS Object Model
- Object reference not set to an instance of an object, when running STSADM commands
- How To Copy DLL files out of GAC (Windows Assembly), Using Explorer Or Command Line
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.