cmd命令总结
cmd命令获取当前日期
echo %date%
>> 2018/11/11 周日
echo %time%
>> 11:11:11.99
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
echo %filename%
>> 20181112131415
cmd打印当前目录和子目录所有文件到桌面
dir /s/b >%USERPROFILE%\Desktop\dirFileAll.txt