Wednesday, June 27, 2007

How to setup a SharePoint Command Prompt

If you need to open a command prompt window to issues SharePoint administration commands such as stsadm.exe, you'll find this useful.

  1. Create a batch file C:\windows\Setspsvars.bat

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

  1. Create a shortcut to C:\WINDOWS\system32\cmd.exe /k setspvars.bat

No comments: