最新下载
热门教程
- 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
相关文章
- 口袋斗罗大陆独孤博技能是什么 独孤博技能介绍一览 10-31
- 王者万象棋香香怎么玩 香香玩法介绍 10-31
- 王者万象棋阵容怎么搭配 阵容搭配攻略 10-31
- 王者万象棋怎么玩 新手玩法攻略 10-31
- 植物大战僵尸2万圣节版本有哪些新植物 万圣节版本新植物介绍 10-31
- 异环薄荷怎么样 薄荷强度解析 10-31
 
             
                                 
                                 
                                 
                                 
                                            
                                         
                                            
                                         
                                            
                                         
                                            
                                         
                                            
                                         
                                            
                                         
                                            
                                         
                                            
                                         
                                            
                                        