echo set x=%x% > file.bat
echo set y=%y% >> file.bat
echo set z=%z% >> file.bat
echo set a=%a% >> file.bat
echo set b=%b% >> file.bat
我不想以这种方式写,因为我必须创建空格,当我这样写:
echo set x=%x%> file.bat
echo set y=%y%>> file.bat
echo set z=%z%>> file.bat
echo set a=%a%>> file.bat
echo set b=%b%>> file.bat
它没有保存所有变量,请帮忙!
答案 0 :(得分:0)
(
echo set x=%x%
echo set y=%y%
echo set z=%z%
echo set a=%a%
echo set b=%b%
) > file.bat