在文件路径批处理作业查询中添加破折号 [英] En Dash in file path batch job query

查看:81
本文介绍了在文件路径批处理作业查询中添加破折号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望有人可以提供帮助. 我有一个批处理作业(Windows env),可以简单地将文件复制到另一个文件夹.

Hoping someone can help. I have a batch job (Windows env) which simply copies a file to another folder.

copy "\\ACP-MS-NAS21\Global\MEC Daily Productivity\Business Analysts\Master_List\HCP_Master_List.xlsx" ^
     "\\ACP-MS-NAS21\Global\CSD [?] DWP Medical Services\CSL_CSD_DB\Master_List"

但是出现以下错误:

文件名,目录名称或卷标语法不正确.

The filename, directory name, or volume label syntax is incorrect.

我可以看到文件路径中有一个破折号,我认为是引起问题的原因. 有什么方法可以在文件路径中使用通配符,或者作业可以通过其他任何方式识别出通配符?

I can see there's an en dash in the file path which I believe is causing the problem. Is there any way to have a wildcard in the file path or any other way the job can recognise this?

先谢谢了. PS.新手,例如批量编程,编码等,所以请用纯英文解释.非常感谢

Thanks in advance. PS. newbie at batch programming, coding etc, so please can explanations be in plain English. Many thanks

推荐答案

感谢所有答复. 我不得不对我的数据库进行设计更改,因此设法解决了现在需要做的事情(phe:))

Thanks for all the responses. I've had to make a design change to my DB so have managed to get around the need to do this now (phew :))

再次感谢

这篇关于在文件路径批处理作业查询中添加破折号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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