📄 fileexists.aspx
字号:
<%@ Language="VB" %>
<%@ Import Namespace="System.IO" %>
<%
if File.Exists("C:\Wrox\Hello.Txt") then
Response.Write( "C:\Wrox\Hello.Txt file exists")
else
Response.Write( "C:\Wrox\Hello.Txt file does not exist")
end if
dim myfile as FileInfo
myfile = new FileInfo("C:\Wrox\Hello.Txt")
if myfile.Exists = true then
Response.Write( "<br>C:\Wrox\Hello.Txt file exists")
Response.Write( "<br>Created: " & myfile.CreationTime )
else
Response.Write( "<br/>C:\Wrox\Hello.Txt file exists does not exist")
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -