开发者

Assign to a file a progressive number according to time

开发者 https://www.devze.com 2023-01-20 06:43 出处:网络
There is a way to assign to a file, lets call it abc.txt, a progressive number, that I suppose should come from the time 开发者_开发知识库set?

There is a way to assign to a file, lets call it abc.txt, a progressive number, that I suppose should come from the time 开发者_开发知识库set?

So that the name of the file could become for example abc_5367879938763.txt


I have found the string set file=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%

that gives a string of 8 characters, for example: 17360720

0

精彩评论

暂无评论...
验证码 换一张
取 消