|
这个问题,我已经搞定了!不知道还有没有更简单的方法!
这个问题,我和Rain已经搞定了!不知道还有没有更简单的方法!代码如下:
dim oShell,i,a,b,c,d,f
For i=1 to 33
a=year(date)
b=month(date)
c=day(date)
if b= 2 then
If c=28 Then
set oShell=CreateObject("WSCript.shell")
b=b+1
c=1
f=a &"/"& b&"/"& c
strcmd="cmd /k date " & f
oShell.run strcmd
else
set oShell=CreateObject("WSCript.shell")
d=c+1
f=a &"/"& b&"/"& d
strcmd="cmd /k date " & f
oShell.run strcmd
End If
elseif (b=1 or b=3 or b=5 or b=7 or b=8 or b=10 or b=12) then
If c=31 Then
b=b+1
c=1
set oShell=CreateObject("WSCript.shell")
f=a &"/"& b&"/"& c
strcmd="cmd /k date " & f
oShell.run strcmd
else
set oShell=CreateObject("WSCript.shell")
d=c+1
f=a &"/"& b&"/"& d
strcmd="cmd /k date " & f
oShell.run strcmd
End If
else
If (b=4 or b=6 or b=9 or b=11) Then
If c=30 Then
b=b+1
c=1
set oShell=CreateObject("WSCript.shell")
f=a &"/"& b&"/"&c
strcmd="cmd /k date " & f
oShell.run strcmd
else
set oShell=CreateObject("WSCript.shell")
d=c+1
f=a &"/"& b&"/"& d
strcmd="cmd /k date " & f
oShell.run strcmd
End If
end if
end if
Next |
|