问题描述
我有一个批处理文件,而我使用xcopy
我给它一个任务,就是从列表中复制文件
文件,但文件夹和文件的名称带有特殊字符
就像áéíóú...这样,如果我执行复制名称为creemebrule.jpg的文件,它就可以工作,但是如果我告诉我复制creemebrulé.jpg,它就不会做,它总是说找不到文件" ,所以我确实发现xcopy不支持非常规字符...
我无法弄清楚文件和文件夹的名称,因为它们被设置为读取纹理,并且必须以这种方式被读取,所以这是我的批处理文件:
@echo关闭
/f(文件列表.txt)中的" delims ="%% i"会回显F | xcopy"c:\ %% i""c:\ prueba2 %% i"/i/z/y
这是我的filelist.txt文件的内容:
\ prueba \ foto \ naranjas.rar
\ prueba \ foto2 \ naranjas4.rar
\ prueba \célular\célulargenial.bmp(注意:这是由于字符é"而失败的)
我一直在到处寻找解决方案,我发现了代码,我只需要特殊字符的支持,这使我陷入了困境:/
i have a batchfile and i''m using xcopy
i''m giving it a task to do, is copying files from a list
of files, but the name of the folders and files have special characters
like áéíóú... so if i execute to copy a file that has the name of creemebrule.jpg it works, but if i tell to copy creemebrulé.jpg it wont do it, it keeps saying that "file not found" when is there, so i did find out that xcopy does not support characters that are not regular...
i can''t be screwing around with the name of the files and folders because they are set to be read for texture and are required the way the are, so this is my batch file:
@echo off
for /f "delims=" %%i in (filelist.txt) do echo F|xcopy "c:\%%i" "c:\prueba2%%i" /i /z /y
and this is the content of my filelist.txt file:
\prueba\foto\naranjas.rar
\prueba\foto2\naranjas4.rar
\prueba\célular\célulargenial.bmp (note: this is the one that fails because of the char "é")
i''ve been looking for a solution everywhere and i found the code, i just need support for special characters, is putting me in the ground :/
推荐答案
这篇关于XCOPY不支持特殊字符!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!