首页 > 其他分享 >bat做网络驱动时报错Multiple connections to a server or shared resource by the same user

bat做网络驱动时报错Multiple connections to a server or shared resource by the same user

时间:2023-01-17 09:44:27浏览次数:45  
标签:bat Multiple use server connections shared resource net

有时会报这样的错:
The mapped network drive could not be created because the following error has occurred:Multiple connections to a server or shared resource by the same user, using more than one user name are not allowed. Disconnect all previous connections to the server or shared resource and try again.

这是因为在远程连接时,用了不同的两个用户名所致:解决办法如下:

1、打开cmd,在管理员模式下输入net use

2、找到list里面可能冲突的driver

3、输入net use /delete \\服务器名称\文件夹名称,将其删除

4、net use再次检查

(在一些情况下net use * /delete删除所有驱动,慎用)
————————————————
版权声明:本文为CSDN博主「zhourong1992」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/zhourong1992/article/details/73842129

标签:bat,Multiple,use,server,connections,shared,resource,net
From: https://www.cnblogs.com/beishi/p/17057005.html

相关文章

  • MybatisPlus多数据源
    适用于多种场景:纯粹多库、读写分离、一主多从、混合模式等。场景说明:我们创建两个库,分别为:​​mybatis_plus​​​(以前的库不动)与​​mybatis_plus_1​​​(新建),将mybatis......
  • MybatisPlus常用插件
    分页插件MyBati-Plus自带分页插件,只要简单的配置即可实现分页功能。添加配置类​​MyBatisPlusConfig​​。packagecom.dawn.mybatisplus.config;importcom.baomidou.m......
  • MybatisPlus通用枚举
    表中的有些字段值是固定的,例如性别(男或女),此时我们可以使用MyBatis-Plus的通用枚举来实现。添加字段在数据库表添加字段​​sex​​altertablet_usermodifysexintnull......
  • MybatisPlus条件构造器
    Wrapper介绍​​Wrapper​​:条件构造抽象类,最顶端父类​​AbstractWrapper​​:用于查询条件封装,生成sql的where条件​​QueryWrapper​​:查询条件封装​​UpdateW......
  • MybatisPlus常用注解
    @TableName经过以上的测试,在使用MyBatis-Plus实现基本的CRUD时,我们并没有指定要操作的表,只是在Mapper接口继承BaseMapper时,设置了泛型User,而操作的表为user表,由此得出......
  • MybatisPlus基本查询
    通用MapperBaseMapper位于com.baomidou.mybatisplus.core.mapper包下,封装了MybatisPlus的通用的CRUD接口,为​​Mybatis-Plus​​​启动时自动解析实体表关系映射转......
  • MybatisPlus入门案例
    开发环境IDE:IDEA2021.1.3JDK:JDK8+构建工具:Maven3.6.3MySQL:MySQL8.0.24Navicat:NavicatPremium15SpringBoot:2.7.2MyBatis-Plus:3.5.1建库建表打开Navicat运行以下SQL脚本......
  • MybatisPlus简介
    介绍​​MyBatis-Plus​​​(简称MP)是一个​​MyBatis​​的增强工具,在MyBatis的基础上只做增强不做改变,为简化开发、提高效率而生。我们的愿景是成为MyBatis最好的搭......
  • MyBatis-Plus 注解方式(一对多、多对一)
    UserMapper.java@RepositorypublicinterfaceUserMapperextendsBaseMapper<User>{ //多对一@Results(value={@Result(property="id",column......
  • MyBatis-Plus通用枚举
    创建通用枚举类型packagecom.atguigu.mp.enums;importcom.baomidou.mybatisplus.annotation.EnumValue;importlombok.Getter;@GetterpublicenumSexEnum{......