MoveFile()到映射的网络驱动器 [英] MoveFile() to a mapped network drive

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

问题描述

我有一个运行检查系统的应用程序,然后将生成的图像文件移动并重命名为数据文件夹。我使用FindFirstFile(),MoveFile()和FindNextFile()在移动中重命名文件。现在我需要将图像文件放在映射驱动器上的文件夹中。 CreateDirectory()非常适合在映射驱动器上构建目录结构,但(我相信你们都知道!)MoveFile()失败。这是一个路径定义问题吗?我是否需要将映射的驱动器指定为URL?任何帮助将不胜感激!



Ron H.(我在郁金香的地方,我的郁金香还有另外7英寸厚厚的积雪!Errr!)

I have an application that runs an inspection system and then moves & renames the resulting image files to a data folder. I used FindFirstFile(), MoveFile(), and FindNextFile() renaming the file on the move. Now I need to put the image files in a folder on a mapped drive. CreateDirectory() works great at building the directory structure on the mapped drive but ( as I am sure you all know!) MoveFile() fails. Is this a path definition issue? Do I need to specify the mapped drive as a URL? Any help will be greatly appreciated!

Ron H. ( In MN where we just got another 7 inches of heavey wet snow on my tulips! Errr!)

推荐答案

如果目标路径位于不同的卷上,则MoveFile将始终失败。最好先复制然后手动删除源文件。



供参考检查 this [ ^ ]。
The MoveFile will always fail if the destination path is on different volume. Better you copy and then delete the source file manually.

For your reference check this[^].


MoveFile将在目录移动时失败我不认为文件移动是一个问题。
The MoveFile will fail on Directory moves I do not think on file move to be a problem.


这篇关于MoveFile()到映射的网络驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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