asp fso type属性取得文件类型代码
来源:asp之家 时间:2009-02-04 10:09:00
asp fso type属性取得文件类型代码是用来返回类型指定的文件或文件夹。
语法
FileObject.Type
FolderObject.Type
实例File对象
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:test.txt")
Response.Write("The file test.txt is of type: ")
Response.Write(f.Type)
set f=nothing
set fs=nothing
%>
Output:
The file test.txt is of type: Text Document
同样fso type还要判断文件夹喽下面我们来看个简单的例子.
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:test")
Response.Write("The folder test is of type: ")
Response.Write(fo.Type)
set fo=nothing
set fs=nothing
%>
Output:The folder test is of type: File Folder
标签:fso,文件,类型,asp
0
投稿
猜你喜欢
sql server update 表的问题
2009-10-04 20:32:00
Python网页解析利器BeautifulSoup安装使用介绍
2021-06-12 05:00:00
Vue实现自定义视频和图片上传的示例代码
2024-05-21 10:30:21
Django在Model保存前记录日志实例
2023-10-05 03:01:29
Python SQLite3数据库操作类分享
2023-08-24 01:04:02
java微信开发之上传下载多媒体文件
2024-06-05 09:43:46
SQL Server和Oracle并行处理方法对比
2009-01-20 15:48:00
简单代码实现可输入的下拉框功能(select)
2008-10-20 19:52:00
Python configparser模块应用过程解析
2022-08-03 19:56:11
详解pyqt中解决国际化tr()函数不起作用的问题
2021-03-31 05:15:56
Python中json库的操作指南
2021-10-11 11:04:43
如何调试 XMLHttpRequest
2008-08-15 13:59:00
python实用代码片段收集贴
2022-02-16 10:01:40
深入浅析ImageMagick命令执行漏洞
2022-07-21 11:50:46
基于Python实现有趣的象棋游戏
2022-06-11 20:37:15
PhpStorm连接服务器并实现自动上传功能
2024-05-02 17:07:02
MySQL处理重复数据的方法
2024-01-24 04:08:27
python入门之基础语法学习笔记
2022-09-08 18:15:49
mysql 日期和时间函数
2024-01-12 18:56:13
Python 实现递归法解决迷宫问题的示例代码
2021-01-31 08:14:23