This is a very small but tremendously useful tip for the beginners of WSS 3.0 or MOSS 2007.Especially when you are using the free version WSS 3.0 many times you need to use this command line utility call stsadm.exe.
As you need it many times every time you need to navigate to its directory which is “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin”
So as a quick workaround what you can do to save your time is to set this path in environment variables section.
Just right click on your MyComputer and select Properties
In the advanced section select environment variables and then below select the path.In the path put semi-colon after the last entry and add one more path as c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin.
After doing this just click OK and you are done.
Now you can run stsadm.exe from anywhere in the command prompt as it’s available globally as an environment variable.
This tip is meant for a sharepoint newbie.