日期:2014-05-17 浏览次数:21172 次
echo del d:\database\kup.bak set /a StartS=%time:~6,2% set /a StartM=%time:~3,2% set /a StartH=%time:~0,2% >test.txt 输出后看到test.txt显示这样的格式 del d:\database\kup.bak set /a StartS=%time:~6,2% set /a StartM=%time:~3,2% set /a StartH=%time:~0,2%
( echo del d:\database\kup.bak echo set /a StartS=%%time:~6,2%% echo set /a StartM=%%time:~3,2%% echo set /a StartH=%%time:~0,2%% )>test.txt
------解决方案--------------------
老老实实的该用几个echo就用几个,瞎折腾这个有啥用?