分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

NET USE 使用方法

发布时间:2023-09-06 01:25责任编辑:沈小雨关键词:暂无标签

net use 列出本机网络连接  
 net use \\IP\ipc$ "密码" /user:"帐号" 建立与指定IP的IPC$(空连接)  
net use z: \\IP\c$ "密码" /user:"帐号" 将对方的c盘映射为自己的z盘  
net use \\IP\ipc$ /del 删除与指定IP的IPC$连接  
net use z: /del 删除本机映射的z盘  
net use * /del 删除本机所有映射和IPC$连接  
如提示:提供的凭据与已存在的凭据冲突, net use * /del 即可  

Net use  
将计算机连接到某个共享资源或与其断开连接,或者显示有关计算机连接的信息。该命令还控制永久性网络连接。在没有参数的情况下使用,net use 可以检索网络连接列表。  

语法  
net use [{DeviceName | *}] [{\\ComputerName[\ShareName[\Volume]]] |[[url]http://ComputerName/ShareName[/url][/Folder]}] [{Password | *}]] [/userscreen.width-300)this.width=screen.width-300‘>DomainName\]UserName] [/userscreen.width-300)this.width=screen.width-300‘>DottedDomainName\]UserName] [/userscreen.width-300)this.width=screen.width-300‘>UserName@DottedDomainName] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]  

net use [DeviceName [/home[{Password | *}] [/delete:{yes | no}]]  

net use [/persistent:{yes | no}]  

参数  
DeviceName  

指派名称以连接到资源,或指定要断开连接的设备。有两种类型的设备名称:磁盘驱动器(即 D: 到 Z:)和打印机(即 LPT1: 到 LPT3:)。键入星号 (*) 代替指定的设备名称来指派下一个可用的设备名称。  

\\ComputerName\ShareName  

指定服务器和共享资源的名称。如果 ComputerName 包含空格,请使用引号将整个计算机名引起来,从 \\ 开始到计算机名的末尾(如 "\\Computer Name\Share Name")。计算机名可以有 1 到 15 个字符。如果省略了 \ShareName,便会尝试连接到 ipc$ 共享。  

NET USE 使用方法

原文地址:http://www.cnblogs.com/HK0427/p/7866968.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved