28,391
社区成员
发帖
与我相关
我的任务
分享
dim MyTime
MyTime = Hour(Time())
if MyTime >="7:00" and MyTime<"11:00" then
response.write("早上")
elseif Mytime >="11:00" and MyTime<"14:00" then
response.write("中午")
elseif Mytime >="14:00" and MyTime<"18:00" then
response.write("下午")
else
response.write("晚上")
end if
set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
set MyTextFile = MyFileObject.OpenTextFile("C\test\text.txt",8)
MyTextFile .WriteLine("我成功了")
dim MyTime
MyTime = Hour(Time())
if MyTime >=7 and MyTime<11 then
response.write("早上")
elseif Mytime >=11 and MyTime<14 then
response.write("中午")
elseif Mytime >=14 and MyTime<18 then
response.write("下午")
else
response.write("晚上")
end if