先比较直接的查看当前的日期和时间:(或者cmd中直接输入date,time查看) @echo off color 0a set dt=%date%%time% echo %dt% pause 1.使用截取进行命名(时间为12小时制时命名会出现空格,不严谨) %date:~0,4% :表示从左往右指针偏移0位,然后从偏移的位置进行截取4个字符.如果是从右往左截取,则需要加上负号 @echo off color 0a set ymd=%date:~0,4%%date:~5,2%%date:~8,2%
在android设备中要创建多个或者多级文件夹时,手动去创建费时费力(有点傻),一个bat文件就能很好的实现这个功能. 1.首先创建同级多个文件夹且在该文件夹下生成一个文件 @echo off echo please wait the devices to connect ..... adb wait-for-device echo device connected set /p i=Please input the number of folder you need: :start set /
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.Excepti