Board logo

标题: [其他] [已解决]批处理命令set去除变量里面的内容 [打印本页]

作者: 尘丶    时间: 2015-9-19 13:39     标题: [已解决]批处理命令set去除变量里面的内容

  1. @echo off
  2. set a=asdas~sada
  3. set a=%a:~=%
  4. echo;%a%
  5. pause
复制代码
怎样能把~也去掉,还有其他特殊字符会这样吗
作者: pcl_test    时间: 2015-9-19 13:49

参考下
http://www.bathome.net/viewthread.php?tid=6038




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