Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
- set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
- set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"
- set "datestamp=%YYYY%%MM%%DD%" & set "timestamp=%HH%%Min%%Sec%"
- set "fullstamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%"
- set "gclogstamp=%username%_%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%.gc"
- set "logstamp=%username%_%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%.log"
- java -XX:+PrintGC -Xms16m -Xmx32m -Xloggc:%gclogstamp% -XshowSettings:all -XX:+PrintCommandLineFlags -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintFlagsFinal -jar yed.jar > %logstamp%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement