回复 1# bat小猎手
1.bat- @echo off
- set "FolderName=保存时间"
- set "FileName=now_time.txt"
- for /f "tokens=2 delims==" %%i in ('wmic Path Win32_OperatingSystem get LocalDateTime /value ^| findstr "="') do (
- set "T=%%i"
- )
- md "%FolderName%" 2>nul
- >>"%FolderName%\%FileName%" echo %T:~0,4%-%T:~4,2%-%T:~6,2% %T:~8,2%:%T:~10,2%:%T:~12,2%
复制代码
|