View difference between Paste ID: YR2SDwhY and NqaxfrM5
SHOW: | | - or go back to the newest paste.
1
@Echo Off
2
set "year=1990"
3
set "month=01"
4
if %month% == 01 goto d31
5
if %month% == 02 goto d28
6
if %month% == 03 goto d31
7
if %month% == 04 goto d30
8
if %month% == 05 goto d31
9
if %month% == 06 goto d30
10
if %month% == 07 goto d31
11
if %month% == 08 goto d31
12
if %month% == 09 goto d30
13
if %month% == 10 goto d31
14
if %month% == 11 goto d30
15
if %month% == 12 goto d31
16
17
:d31
18
for /d %%i IN (0 1 2) DO (
19
	for %%j IN (0 1 2 3 4 5 6 7 8 9) DO (
20
        copy "YYYYMMDD我是陳慶全.txt" "%year%%month%%%i%%j我是陳慶全.txt"
21
	)
22
)
23
del "%year%%month%00我是陳慶全.txt"
24
copy "YYYYMMDD我是陳慶全.txt" "%year%%month%30我是陳慶全.txt"
25
copy "YYYYMMDD我是陳慶全.txt" "%year%%month%31我是陳慶全.txt"
26
27
:d30
28
for /d %%i IN (0 1 2) DO (
29
	for %%j IN (0 1 2 3 4 5 6 7 8 9) DO (
30
        copy "YYYYMMDD我是陳慶全.txt" "%year%%month%%%i%%j我是陳慶全.txt"
31
	)
32
)
33
del "%year%%month%00我是陳慶全.txt"
34
copy "YYYYMMDD我是陳慶全.txt" "%year%%month%30我是陳慶全.txt"
35
36
:d28
37
for /d %%i IN (0 1 2) DO (
38
	for %%j IN (0 1 2 3 4 5 6 7 8 9) DO (
39
        copy "YYYYMMDD我是陳慶全.txt" "%year%%month%%%i%%j我是陳慶全.txt"
40
	)
41
)
42
del "%year%%month%00我是陳慶全.txt"
43
del "%year%%month%29我是陳慶全.txt"