如何使用 SharePoint 网站从命令行打开 SharePoint 设计器

发布于 2024-07-22 02:04:26 字数 827 浏览 7 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烙印 2024-07-29 02:04:26

我认为要打开一个网站,您只需传入该网站的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文