Board logo

标题: [文件操作] 批处理怎么删除包含特殊字符文件名的文件? [打印本页]

作者: pccyc    时间: 2012-4-18 23:15     标题: 批处理怎么删除包含特殊字符文件名的文件?

今天做测试做了一个变态文件名,想用批处理删除.结果不行.请教各位朋友,例如一个   !@#$%^().txt   文件
作者: pccyc    时间: 2012-4-18 23:27

自己看帖子解决了,如果文件名中含有^等类似符号必须在文件路径+""号同时+/a参数如: del /a "!@#$%^().txt"
作者: lvsehuaxue    时间: 2012-4-19 10:40

  1. @echo off
  2. del "!@#$%%^().txt"
复制代码





欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2