China Naming Network - Naming consultation - Easy Language modifies the file name source code according to the system time.
Easy Language modifies the file name source code according to the system time.
.Version
2
Adopt it
.Assembly
Window Assembly 1
.Subroutine
_Button 1_Clicked
.Local variable
File name,
Text type
.Local variables
Array,
Text type,
,
"0"
File name
=
Search for file
("d:\directory\*.*",
)
.Judge the beginning of the loop
(File name
≠
“”)
Array
=
Split text
(File name,
“.”,
)
File rename
("d:\directory\"
+
File name,
"d:\directory\"
+
Array
[1]
+
".txt")
File name
=
Find file
(,
)
. Determine the end of the loop
()