如何从SharePoint站点的命令行打开SharePoint设计器

时间:2022-04-04 07:07:56

I'm working on a Visual Studio Add-in to edit files in SharePoint. From this Add-in I would like to be able to open SharePoint Designer with a specific SharePoint site. Finding the application is no problem, its folder is in registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\SharePoint Designer\InstallRoot, and the application is called SPDesign.exe.

我正在使用Visual Studio加载项来编辑SharePoint中的文件。从这个加载项我希望能够使用特定的SharePoint站点打开SharePoint Designer。查找应用程序没有问题,其文件夹位于注册表项HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Office \ 12.0 \ SharePoint Designer \ InstallRoot中,该应用程序名为SPDesign.exe。

I could only find a command-line switch to open a page (see http://office.microsoft.com/en-us/sharepointdesigner/HA101487151033.aspx), not to open a site.

我只能找到一个命令行开关来打开一个页面(参见http://office.microsoft.com/en-us/sharepointdesigner/HA101487151033.aspx),而不是打开一个站点。

If I open a page like spdesign.exe /n http://myserver/pages/default.aspx, the page is opened with a name Untitled_1.aspx, and at the left side you don't see the site explorer.

如果我打开像spdesign.exe / n http://myserver/pages/default.aspx这样的页面,则会打开一个名为Untitled_1.aspx的页面,而在左侧则看不到该站点资源管理器。

Any ideas on how to automate the opening of a site, and if possible also the opening of a page in the site, with the site navigator on the left side and the actual page opened.

关于如何自动打开网站的任何想法,如果可能的话,还打开网站中的页面,左侧是站点导航器,打开了实际页面。

1 个解决方案

#1


I think to open a site, you just pass in the URL of the site with with no switch.

我想打开一个网站,你只需传递没有开关的网站的URL。

spdesign.exe http://My_server/My_site

#1


I think to open a site, you just pass in the URL of the site with with no switch.

我想打开一个网站,你只需传递没有开关的网站的URL。

spdesign.exe http://My_server/My_site