如何通过传递基本路径(本地路径)获取网络路径 [英] How to get Network Path by passing Base path(Local Path)

查看:196
本文介绍了如何通过传递基本路径(本地路径)获取网络路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过传递基本路径(本地路径)获取网络路径,假设在网络机器中如果共享 D 驱动器 D 驱动器包含名为 D:\ MYPath 的路径,在用户计算机中我想要访问名为 D 的网络驱动器作为本地驱动器 D:\\ \\ _MYPath ,我如何像普通驱动器一样访问网络驱动器请帮助我。

How to get Network Path by passing Base path(Local Path) , Suppose In Network Machine If D drive is shared In D Drive contains path called D:\MYPath , In user Machine I want to access Network drive called D as local drive D:\MYPath ,how I can access network drive as like normal Drive please help me .

推荐答案

有几种方法可以做到这一点。一种方法是从命令行:



净使用x:\\ computer name \ sharename



假设网络路径已将D:\ MYPath文件夹作为MYPath共享,命令行将为:



净使用D: 网络路径







净使用D:\\ computer name \ MYPath



您可以通过运行流程CMD在程序中执行此操作,但通常这是一次永久性的事情。
There are several ways to do this. One way to do it is from the command line:

net use x: \\computer name\share name

Assuming the "Network Path" has shared the D:\MYPath folder as MYPath the command line would be:

net use D: "Network Path"

or

net use D: "\\computer name\MYPath"

You can do this in a program by running the process CMD but normally this is a one time permanent thing.


这篇关于如何通过传递基本路径(本地路径)获取网络路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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