使用批处理文件将sharepoint文件夹映射到网络驱动器 [英] mapping a sharepoint folder to a network drive using a batch file

查看:960
本文介绍了使用批处理文件将sharepoint文件夹映射到网络驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我无法使用批处理文件作为登录脚本将Sharepoint文件夹映射到映射的驱动器.如果我在命令提示符下手动输入以下内容,则效果很好:

I am unable to map a Sharepoint folder to a mapped drive using a batch file as a login script. If I manually put the following in a command prompt, it works fine:

net use z:我的网址"

net use z: "my url"

但是,如果我将单个命令放在批处理文件中并执行该批处理文件,则会收到发生系统错误67,找不到网络名称."

But if I put that single command in a batch file and execute the batch file, I get an "System Error 67 has occurred the network name cannot be found."

我尝试将其映射为IP地址而不是URL,并且得到相同的结果.

I've tried mapping it an IP address instead of the URL and I get the same results.

任何帮助将不胜感激!

谢谢!

推荐答案

jamorichards,

Hi jamorichards,

在映射驱动器时,我们不能使用IP地址而不是URL.映射驱动器时,可以看到示例.

We cannot use IP address instead of the URL when mapping the drive. When we map the drive, we can see the examples.

根据我在SharePoint 2013环境中的测试,我在命令提示符下使用"net use X:http://myserver/lib1/aa",它可以正常工作.

Per my test in my SharePoint 2013 environment, I use the "net use X: http://myserver/lib1/aa" in the command prompt, it can work.

然后,我将"net use z:" http://myserver/lib1/bb"在test1.bat中,并通过以下命令执行批处理文件.它也可以正常工作.

And I put the "net use z: "http://myserver /lib1/bb" in the test1.bat and execute the batch file by the command below. It also can work fine.

启动进程"cmd.exe"; "/k C:\ test \ test1.bat"

start-process "cmd.exe" "/k C:\test\test1.bat"

要解决此问题,请检查以下内容:

To troubleshoot the issue, check things below:

1.检查是否可以通过Windows资源管理器成功映射驱动器.

1. Check if you can map the drive successfully by windows explorer.

2.切换到另一台计算机以检查是否会出现相同的问题.

2. Switch to other computer to check if the same issue will occur.

最诚挚的问候,

萨拉范


这篇关于使用批处理文件将sharepoint文件夹映射到网络驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆