path.aspx

来自「asp.net技术内幕的书配源码」· ASPX 代码 · 共 22 行

ASPX
22
字号
<%@ Import Namespace="System.IO" %>

<%
Dim strPath As String

' Get a Temporary File
strPath = Path.GetTempFileName
Response.Write( "<li>Created TempFile " & strPath )

' Retrieve File Name
Response.Write( "<li>The name of the file is " )
Response.WRite( Path.GetFileName( strPath ) )

' Retrieve Directory Name
Response.Write( "<li>The name of the directory is " )
Response.Write( Path.GetDirectoryName( strPath ) )

' Retrieve File Extension
Response.Write( "<li>The file has the extension " )
Response.Write( Path.GetExtension( strPath ) )
%> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?