如何使用 SharePoint 网站从命令行打开 SharePoint 设计器
我正在开发一个 Visual Studio 插件来编辑 SharePoint 中的文件。 我希望能够通过此加载项打开具有特定 SharePoint 网站的 SharePoint Designer。 找到该应用程序是没有问题的,它的文件夹位于注册表项HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\SharePoint Designer\InstallRoot中,该应用程序名为SPDesign.exe。
我只能找到一个命令行开关来打开页面(请参阅 http://office.microsoft.com/en-us/sharepointdesigner/HA101487151033.aspx" rel="nofollow noreferrer">http:// /office.microsoft.com/en-us/sharepointdesigner/HA101487151033.aspx),而不是打开网站。
如果我打开像 spdesign.exe /n http://myserver/pages/default.aspx 这样的页面,页面打开时名称为 Untitled_1.aspx,在左侧您看不到站点资源管理器。
关于如何自动打开网站的任何想法,如果可能的话,还可以打开网站中的页面,其中网站导航器位于左侧并打开实际页面。
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.
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.
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为要打开一个网站,您只需传入该网站的 URL,无需任何开关。
spdesign.exe http://My_server/My_site
I think to open a site, you just pass in the URL of the site with with no switch.
spdesign.exe http://My_server/My_site