如何忽略文件路径中的星号(*)? [英] how to ignore an asterisk (*) in a file path?
问题描述
我有一些文件中包含星号的文件
i have some files that contains asterisk as a part of the file name
例如"Y2202778765G * .pdf"
for example "Y2202778765G*.pdf"
我需要从服务器获取此文件,但是当我搜索该文件时出现错误
i need to get this file from the server but when i search it i get an error
文件路径包含非法字符".
"file path contains illegal characters".
我怎么能忽略这个* ????
how can i ignor this * ????
推荐答案
您是说您已经拥有名称中带有星号的现有文件了吗? ?您是如何处理的?这是Windows操作系统吗?
Are you saying you already have existing files with asterisks in their name? How did you manage that? Is this a Windows operating system?
因为Windows不允许您首先在文件名中使用星号! (搜索时,星号用于通配符).
Because Windows does not allow you to use asterisks in file names in the first place! (Asterisks are used for wildcard characters when searching).
这篇关于如何忽略文件路径中的星号(*)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!