batch script example

  1. Export Filename after data and time format
@ECHO OFF
set datetime=%date:~0,4%-%date:~8,2%-%date:~0,2%_%time:~0,2%%time:~3,2%%time:~4,0%_%TIME:~6,2%
set datetime=%datetime: =0%
echo hello >>%datetime%.txt
EXIT
Chen-Chih’s Portfolio Page
Chen-Chih’s Portfolio Page
Life is full of challenged!
More information
Followers
4
Elsewhere