最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ASP ParentFolder 与 ASP Path 属性实例教程
时间:2022-06-30 11:42:35 编辑:袖梨 来源:一聚教程网
ASP ParentFolder 与 ASP Path 属性是判断当前文件或文件夹的上级目录
我们先来看看parentfolder属性吧.
好了下面我们接着看asp fso path 属性实例教程吧.
语法
DriveObject.Path
FileObject.Path
FolderObject.Path
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The path is " & d.Path)
set d=nothing
set fs=nothing
%>
Output:
The path is C:
对文件
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:asptesttest.asp")
Response.Write("The path is: " & f.Path)
set f=nothing
set fs=nothing
%>Output:The path is: C:asptesttest.asp ParentFolder返回的路径为指定的驱动器,文件或文件夹。 该ParentFolder财产用于返回该文件夹对象的母公司指定的文件或文件夹。 语法FileObject.ParentFolder FolderObject.ParentFolder 例如File对象<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:asptesttest.asp")
Response.Write("The file test.asp is in the folder: ")
Response.Write(f.ParentFolder)
set f=nothing
set fs=nothing
%>Output:The file test.asp is in the folder: C:asptestParentFolder对台戏文件夹实例教程<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:asptest")
Response.Write("The folder test is in the folder: ")
Response.Write(fo.ParentFolder)
set fo=nothing
set fs=nothing
%>Output:The folder test is in the folder: C:asp
相关文章
- 魔兽世界怀旧服Plus部落战旗位置一览 12-16
- 歪歪漫画免费在线看漫画高清入口-歪歪漫画免费页面画质超清优选 12-16
- 魔兽世界怀旧服Plus穴居人之心获取方法 12-16
- outlook邮箱登录入口官网在哪-outlook邮箱登录入口网页版直达 12-16
- 漫蛙漫画网页入口免费版无广告-最新免费版漫蛙漫画网页无广告入口 12-16
- 塞尔达无双封印战记红月之下怎么过 红月之下全流程图文攻略 12-16