使用本地 Windows 应用程序更改服务器上的文件

发布于 2024-08-04 09:14:56 字数 97 浏览 1 评论 0原文

我正在编写一个自动化程序来更新我们服务器上的 Excel 工作表(C# 中)的内容。我们的服务器有各种门户并具有不同的凭据。我如何将门户上的文件提取到本地计算机以对其进行一些更改。

I am writing an automation to update the contents on an excel sheet(in c#) present on our server. Our server has various portals and has different credentials. How could I fetch the file on my portal to my local computer to make some changes to it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

挽容 2024-08-11 09:14:56

您的计算机是否位于服务器的域中?如果是这样...

以有权访问并通过 UNC 路径操作它的用户身份运行,就像正常路径一样...例如,您将加载 @"\Servername\share\file.xls" 而不是 @"C:\path\文件.xls”。

Is your computer on a domain with the server? If so...

Run as a user who has access and manipulate it via UNC paths just like normal paths... for example you would load @"\Servername\share\file.xls" instead of @"C:\path\file.xls".

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