使用xcopy遇到的一个问题

ODAC112040Xcopy_64bit.zip ODAC安装包 附带详细文档 立即下载

 我需要从远端的服务器拷贝一个大的目录(>1G)到本机,在Console中我使用了xcopy命令。过了几十分钟之后,在copy一个大的文件(大约500M)时出现了错误:

                        File creation error - the specified network name is no longer available.

不知道这个错误什么意思,在google上搜索了一下,找到了一篇好的文章:http://www.xxcopy.com/xxgroup/m08/msg08400.htm。Garry很细心,对很多情况进行了测试。得出的结果是:造成这个错误是由于网络连接不好导致的。没有办法,只能让远程机器开一个ftp给我用。

 

我把这篇文章贴在最后:

 

--- In xxcopy@yahoogroups.com, "dcohn99"  wrote:
> As to your very detailed response, thank you, but my question
> still comes down to why are other applications able to display
> and/or copy the files from the system in question. Examples
> like Dir and xcopy.


I did some testing across a lan using a similar setup as Doug
has described although I don't have an ME machine so couldn't
duplicate it exactly. To simulate a network problem, I tried
two methods:

1. I removed the cable - permanent disconnection
2. On the remote PC, I closed the connection several times with
a NET SESSION //PC /D /Y. This results in a brief disconnection
until windows re-establishes the connection.

Here's a summary of what I tried and the results. In each case,
the source was a remote PC (either mapped to a drive or via
UNC) and the dest was local. The xxcopy/xcopy command was a
simple copy to an empty destination. The source consisted of
19 files between 1.5Mb and 4.2Mb.

Test 1.
=======
src=mapped drive on W2k
dst=local NT4
command=xxcopy n:/test/ d:/test/ /bu/pb/onxxcopy.log/oe3

1. When the plug was pulled, xxcopy/windows waited approx 90secs
then terminated with exit code 101. The error reported by xxcopy
was #240 "Unspecified system error". NET HELPMSG 240 gives this
as "The session was cancelled". Not all files were copied.

If the cable was re-connected during the wait state, the copying
continued unabated and terminated normally.

2. When the session was closed, xxcopy immediately issued a
"Copy failed" message on the console then the copying continued
with the next file and terminated with exit code 100+no of
failed copies and error #240 as for 1.

Test 2. As for 1 but swapped PC's
=======
src=mapped drive on NT4
dst=local W2k
command=xxcopy n:/test/ d:/test/ /bu/pb/onxxcopy.log/oe3

1. When the plug was pulled, xxcopy/windows waited approx 90secs
then terminated with exit code 101. The error reported by xxcopy
was #64 "The specified network name is gone". NET HELPMSG 64
gives this as "The specified network name is no longer available"

If the cable was re-connected during the wait state, the copying
continued unabated and terminated normally.

2. When the session was closed, xxcopy immediately issued a
"Copy failed" message on the console then the copying continued
with the next file and terminated with exit code 100+no of failed
copies and error #64 as for 1 but on one occassion gave error #6
"Incorrect internal file identifier". NET HELPMSG 6 gives this
as "The handle is invalid".

Test 3. As for 2 but using /cr30
=======
src=mapped drive on NT4
dst=local W2k
command=xxcopy n:/test/ d:/test/ /bu/pb/onxxcopy.log/oe3/cr30

2. Exactly the same as above i.e. /cr30 had no effect.

Test 4. As for 3 but using UNC src
=======
src=UNC drive on NT4
dst=local W2k
command=xxcopy //pc/d/test/ d:/test/ /bu/pb/onxxcopy.log/oe3/cr30

2. Exactly the same as above i.e. UNC made no difference.

Test 5. As for 2 but using xcopy
=======
src=mapped drive on NT4
dst=local W2k
command=xcopy n:/test/* d:/test/ /s/c

1. When the plug was pulled, xcopy/windows waited approx 50secs
then terminated with exit code 0!! The console listed multiple
"Unable to create directory ....." followed by "File creation
error - the network path was not found".

If the cable was re-connected during the wait state, the copying
continued unabated and terminated normally.

2. When the session was closed, xcopy continued with the copy
and copied the files normally. However if the session was
closed repeatedly with no pause between each closure, xcopy
issued a "File creation error - the specified network name
is no longer available" (this is the same as #64 above).
If the session was left to then re-establish itself, xcopy
continued copying the remaing files and terminated with
exit code 0.


So the conclusions that might be drawn from this.

1. The #error codes reported by windows/xxcopy with /oe3 are
system dependent. NT4 reported different error numbers to W2k
for the same error condition. The #error codes reported by
Doug on ME are different again however the descriptions in
all cases are similar.

2. Xxcopy reports a 101 "success" code even when the cable
is pulled and the source is permanently lost. Xxcopy then
stops copying (or trying to copy) any further files and
terminates. This is however a lot better than xcopy's 0
exit code although it does at least list the file names
of the failed copies to the console.

3. Xxcopy doesn't re-try on failed network access errors
even temporary disconnects. Xcopy does wait for a while
(not certain how long - about 5-10 secs).

4. Don't rely on either xxcopy's or xcopy's exit code as
the sole determinant of the success or failure of a
network copy. Xxcopy exit code 101 or higher may be a
critical error. Xcopy exit code 0 may be a critical error.
I guess system admins need to make sure they use /oe2 or
/oe3 and check the logs for critical #error_nos.

5. I'm not sure why xxcopy terminates when the network
cable is disconnected and a #64 error results but continues
when the session is closed and a #64 error results.
Similarly, I don't know why xxcopy/windows waits 90 secs
on a cable disconnect but xcopy waits 50 secs. Maybe
there is further status checking within xxcopy which
determines whether xxcopy terminates.

6. I couldn't replicate Doug's #55 error which resulted
in a termination of xxcopy but presumably it is similar
to the W2k #64 errors and the status reports look like
a permanent disconnection on an ME system.

Garry
ODAC 11.2.0.3.20 Xcopy 64位安装包 资源下载链接为: https://pan.quark.cn/s/79e4c8f3cb8b ODAC1120320Xcopy_x64 是一款专为 64 位系统设计的 Oracle Data Access Components(ODAC)版本,它包含 Oracle Provider for OLE DB 驱动程序,这是在微软 SQL Server 与 Oracle 数据库之间建立链接服务器的关键组件,能够使用户在 SQL Server 环境中对 Oracle 数据进行查询、操作和管理。ODAC 是一组用于高效访问 Oracle 数据库的.NET Framework 数据提供程序,涵盖了与 Oracle 数据库交互所需的多种组件,比如 Npgsql(.NET 数据提供程序)、OracleClient(Oracle 数据提供程序)、OracleConnection、OracleCommand、OracleDataAdapter、OracleDataReader 和 OracleDataTypes 等。此版本 11.2.0.3.20 是针对 Oracle 数据库 11g 的,确保与该版本数据库的兼容性。 该版本的压缩包内包含以下关键文件:configure.bat 是用于配置 ODAC 组件的批处理文件,可能涉及设置环境变量、注册组件等操作;uninstall.bat 用于卸载已安装的 ODAC 组件,清理系统中相关的设置和文件;unconfigure.bat 可能是用来撤销配置,将系统恢复到安装前的状态;install.bat 是安装 ODAC 的批处理脚本,执行诸如复制文件、注册组件等必要的安装步骤;readme.htm 包含 ODAC 组件的详细信息、安装指南、使用注意事项以及可能的故障排除步骤; 立即下载

相关推荐

实战指南:如何用Frida绕过某梆加固的Anti-Frida检测(附完整脚本)

本文深入剖析了企业级加固方案中的Anti-Frida检测机制,并提供了实战对抗策略。通过分析基于文件系统、内存特征、行为及环境的多层次检测原理,文章详细介绍了如何定位检测逻辑、绕过maps文件扫描、对抗内存与行为特征检测,并附上了针对某梆加固的完整绕过脚本与系统化工程方案。

weixin_42527589的博客 600

samba “The specified network name is no longer available” 出错的解决办法

关于samba的作用在这里我就不作详细的解说了,由于这几天重装了ubuntu14.04的系统,一些关于samba的配置文件都是之前配置好的,直接覆盖了现有的,跳过了繁琐的配置步骤,没想到出现了“  The specified network name is no longer available”这样的一个小问题,卸载,重新安装samba,又重新配置文件,问题依然存在,但是在windows

小白的IT旅程 1万+

实战解析:如何通过LTspice仿真优化MOS管缓启动电路,解决上电冲击电流问题

本文详细解析如何通过LTspice仿真优化MOS管缓启动电路,有效解决上电冲击电流问题。文章从问题根源分析入手,介绍LTspice环境搭建、缓启动电路设计原理、参数优化技巧及实际工程问题排查,帮助工程师掌握MOS管电源开关电路的关键设计方法,提升系统可靠性和性能。

weixin_28683689的博客 516

The specified network name is no longer available

Windows server 2019作为域服务器, Windows server 2003加域出现“The specified network name is no longer available” 报错。1.Windows2019 添加角色和功能。4.Windows2003重新加域 ,成功。3.重启windows2019服务器。2. 安装SMB1(默认没有安装)

Jian Sun_的博客 1499

37、半导体硅材料中的缺陷与吸杂技术解析

本文系统解析了半导体硅材料中的缺陷形成机制及其对电子器件性能的影响,重点探讨了生长和工艺诱导缺陷、表面与内部微缺陷的起源与特征。文章详细阐述了吸杂技术的原理、过程及在集成电路和太阳能电池制造中的应用,强调通过氧行为调控和热处理优化实现缺陷控制。同时介绍了吸杂效果的评估方法,并展望了未来新型吸杂技术的发展趋势,为提升半导体器件性能和制造良率提供理论支持和技术路径。

mongodb5scout的博客 164

【AI产品思路】用户旅程图与用户全生命周期:到底是什么关系?

用户旅程图(User Journey Map)和用户全生命周期(User Lifecycle)是两种不同的分析框架。用户旅程聚焦单次交易体验的完整过程(如浏览→下单→售后),关注触点、情绪和优化点;而用户生命周期则关注用户与平台的长期关系(从认知到流失),着重提升留存和LTV。两者互为补充:生命周期是时间维度的关系框架,旅程图是行为维度的体验路径。电商运营中,旅程优化改善单次体验,生命周期优化解决长期增长问题,二者结合才能实现体验提升与商业效率的双赢。

qq_25438419的博客 218

与MS SqlServer服务器 建立连接后,查询数据时发生-指定的网络名不再可用错误-The specified network name is no longer available

MS SqlServer 建立连接后,查询数据时发生Failed to retrieve data for this request ,报指定的网络名不再可用错误-The specified network name is no longer available的错误。

ziren的专栏 3169

3、★☛基于STM32的手机通过wifi控LED灯√♠★

3、基于STM32的手机通过wifi控LED灯 文章目录3、基于STM32的手机通过wifi控LED灯1、Introduce介绍1.1、课题背景及其意义1.2、 国内外的研究状况2、方案的设计2.1、控制方案的确定2.2、控制方式的选择2.2.1、 单片机芯片的选择方案一方案二方案三方案四2.2.2、无线遥控模块的选择方案一方案二方案三3、硬件电路的设计3.1、系统的功能分析及体系结构设计3.1.1、系统功能分析3.1.2、系统总体结构3.2、模块电路的设计3.2.1、 STM32单片机核心电路设计3.2.

行走的皮卡丘 2962

xcopy 远程备份时 报:无效驱动器规格 复制了0个文件

这里经常会出现问题就是连接不上 出现错误: 发生系统错误 53。 找不到网络路径 解决方法:关闭windows防火墙;启动远程控制权限;

qq_35840262的博客 9147

SIMULINK开发项目实例 1000 例专栏之第912例--AC-DC整流器场景:基于PWM整流器拓扑结构的建模:三相电压型PWM整流器(SR)单位功率因数控制仿真

本文详细介绍了使用Simulink和Simscape Electrical搭建三相电压型PWM整流器(VSR)模型的方法。主要内容包括:系统结构设计、主电路拓扑搭建、单位功率因数控制算法实现(含PLL锁相环、dq变换、PI控制器等模块)、参数配置和仿真设置。通过仿真分析验证了该系统能实现输入电流与电压同相位、输出直流电压稳定等特性,体现了PWM整流器的高效性和低谐波优势。文章还提出了增强鲁棒性、多工况测试等优化建议,为电力电子系统设计提供了实用指导。该建模方法对新能源发电、电动汽车充电等领域具有重要意义。

xiaoheshang_123的博客 7797

【JDK】win 10 / win 11:jdk 8 下载、安装、配置、验证

win10 / win 11:JDK 最新版本下载 / 历史版本下载(jdk 8)、安装、配置系统环境变量、验证安装全详细操作教程

顾三殇 —— 博客空间(软件测试) 13万+

xcopy的一次误用及解决办法

作者:朱金灿来源:http://blog.youkuaiyun.com/clever101 一直迷信xcopy的强大功能,在复制文件的地方都用xcopy。今天在VS2008上设置一个生成后事件使用了xcopy命令:xcopy /Y $(SDK_DLL)\$(ConfigurationName)\$(ProjectName)D.dll $(SDK_BIN)\$(Configuration...

weixin_34221773的博客 710

基于YOLOv11的仓库机器人导航系统设计与实现:Amazon Robotics Challenge解决方案

本文将详细介绍一个基于YOLOv11目标检测算法的仓库机器人导航系统,该系统能够准确识别托盘(pallet)和箱子(box),为机器人提供精确的导航信息。而基于深度学习的视觉导航系统能够实时识别环境中的关键物体,如托盘和箱子,从而实现更智能的路径规划和货物搬运。YOLOv11作为YOLO系列的最新演进版本,在检测精度和速度上都有显著提升,非常适合仓储环境中的实时物体检测任务。YOLOv11在保持实时性的同时,提高了对小物体和密集物体的检测能力,这对仓储环境中的托盘和箱子检测尤为重要。

YOLO 303

windows xcopy无法正常运行的bug

问题描述:当使用xcopy去处理中文路径的时候,出现文件以及拷贝过去,但是目标目录就是没有文件被拷贝过来。 Xcopy D:\project-packages\jar\ui\2.0 D:\Project\项目系统\lj-programme2.0 /s /e /Y 原因是:拷贝路径中含有中文: 解决方案:利用notepad++,转码维ansi即可。 ...

pengnf 3200

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

cmd的xcopy命令

C#项目的PostEvent里经常会用到xcopy命令,复制目录时容易出错,如下: xcopy sourceDir targetDir,其中的2个目录最后不能有反斜杠"",而目录类的宏命令一般都会在最后输出反斜杠"",比如$(TargetDir)。否则会报errorCode = 4。变通的解决方法是把$(TargetDir)替换为$(Project)bin\Debug 生成的路径里有的时候会带空...

weixin_30362233的博客 862

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

通过bat文件使用xcopy抽取指定文件

通过bat文件使用xcpoy抽取指定文件 因为路径太长了,所以设置了一下变量,等号两头,变量名和要赋予的值不要有空格。(妈惹,踩了个坑。) 因为只想简单的copy,所以不用弄的很复杂。 但是网上没看到我这种写法,可能是比较智障吧。哈哈。 放个pause(暂停)是因为我要看一下copy的情况,不需要的可以不加呐。 ...

visual_lulu的博客 662

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

安装vs2010后原先的vs2015某些功能不能使用,xcopy命令也找不到

介绍: 工程的使用bat脚本来打开执行的,其中执行了xcopy命令将几个第三方库拷贝到输出目录中,并且设置使用vs2015打开sln文件。 问题现象: 安装vs2010后原先的vs2015某些功能不能使用,xcopy命令也找不到。 解决方法: vs2010在系统环境变量path中,添加了几个新安装软件的路径,将其中几个删除,重启电脑,再次运行工程脚本,就能打开了。 原因分析: 不清楚。 微软大法好...

yingge的专栏 553

命令“xcopy "C:\***\bin\Debug\*.dll" "C:\***\bin\Debug\" /Y”已退出,代码为 4

命令“xcopy "C:\***\bin\Debug\*.dll" "C:\***\bin\Debug\" /Y”已退出,代码为 4。 我的笔记本使用TFS签出代码是碰到的问题,弄了好久,每次编译直接报错。 解决方案: 把你签出的路径不要有中文就可以了。因为错误已经说明了通过路径找不到文件,也就是无效的路径。但是我的路径已经确认是正确的,所以通过对比,得出是因为路径中有中文的问题。你们也可...

weixin_30747253的博客 1791

vs 生成后事件 写法

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34341117的博客 492

异地批处理跳过已存在的文件

@echo off echo y|xcopy D:\backup\expdpbak*.DMP /d /e /r /k \IP\Download\xinjian echo y|xcopy D:\backup\expdpbak*.log /d /e /r /k \IP\Download\xinjian pause 运行然后出问题,报错:请求已被忽略,实例已在运行 解决办法 @echo off ec...

weixin_42055105的博客 824

解决错误“无效驱动器规格,复制了0个文件”

利用xcopy复制文件时提示错误。 见以下问题: 报错:无效驱动器规格 复制了0个文件 原bat内容: @REM 设置目录 set REPORT_DIR = D:\autotest\Reports set TEST_REPORT_DIR = E:\Test\Reports @REM 拷贝文件 echo D| xcopy /Y "%REPORT_DIR%" "%...

青少儿编程STEAM 1万+

linux cp 命令 错了,Linux 使用cp命令的错误

昨天维护的编译软件出了一个奇怪的问题,功能大概是这样的:1、下载资源和代码;2、编译;3、将需要打包的文件复制到临时目录打包。后来由于新需求,修改了一下功能,在复制到临时目录之前还有回去一些资源到临时目录:2.5、下载三方资源到临时目录。增加此功能后错误就出现了,复制的临时目录的结构全乱了,比如:java/bin应复制到temp/bin,结果去错误的复制到了temp/bin/bin。看到此问题我以...

weixin_42298927的博客 739

Win10复制共享文件夹里面文件时复制中突然窗口闪退explorer.exe重启复制中断,无法复制文件

环景: dell计算机 win10 专业版 问题描述: 复制共享文件夹里面文件时,复制中突然窗口闪退explorer.exe重启复制中断,文件大小6个G 解决方案: 1.暂未查出原因 2.使用cmd窗口xcopy命令拷贝文件

本博客,博文仅代表个人操作经验,不能完全解决你的问题,仅供参考,佛系回复。 2810

day13—编程题

这条石板路要根据特殊的规则才能前进:对于小易当前所在的编号为K的 石板,小易单次只能往前跳K的一个约数(不含1和K)步,即跳到K+X(X为K的一个非1和本身的约数)的位置。小易当前处在编号为N的石板,他想跳到编号恰好为M的石板去,小易想知道最少需要跳跃几次可以到达。比如在命令行输入xcopy /s “C:\program files” "d:“时,参数仍然是4个,第3个参数应该是字符串C:\program files,而不是C:\program,注意输出参数时,需要将”"去掉,引号不存在嵌套情况。

m0_61963422的博客 225

软件平台错误修改

命令“xcopy "C:\***\bin\Debug\*.dll" "C:\***\bin\Debug\" /Y”已退出,代码为 4 我的笔记本使用TFS签出代码是碰到的问题,弄了好久,每次编译直接报错。 解决方案: 把你签出的路径不要有中文(和空格)就可以了。因为错误已经说明了通过路径找不到文件,也就是无效的路径。但是我的路径已经确认是正确的,所以通过对比,得出是因为路径中有中文的问题...

biersibao的博客 489
上一篇: 给右键菜单加入CMD命令行快速通道
下一篇: VS中的"渐进式搜索"
AI风
博客等级 码龄26年 25粉丝 35原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值