Board logo

标题: 批处理中使用变量问题 [打印本页]

作者: wtwl     时间: 2007-11-12 09:14    标题: 批处理中使用变量问题

copy 1.txt %ProgramFiles%\1.txt

不行

copy 1.txt c:\"Program Files"\1.txt

成功
如何在批处理中使用变量???

[ Last edited by wtwl on 2007-11-12 at 09:17 AM ]
作者: lxmxn     时间: 2007-11-12 12:33
set str=hello everybody
echo 变量str的值为:%str%
作者: balinger     时间: 2007-11-12 15:47
copy 1.txt "%ProgramFiles%"\1.txt