ASP@Workshop
HOME > ASP サンプル集 > 指定された特殊フォルダを取得する
指定された特殊フォルダを取得する

サンプルソース

<%
Set objFso = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFso.GetSpecialFolder(0)

Response.Write "作成日時:" & objFile.DateCreated & "<br>"

Set objFile = Nothing
Set objFso = Nothing
%>

解説

Scripting.FileSystemObjectはファイル操作をするオブジェクトです。
GetSpecialFolderで特殊フォルダのオブジェクトを取得します。
パラメータ→ 0:Windows フォルダ、1:System フォルダ、2:Temp フォルダ


関連する内容



スポンサードリンク



Copyright (C) 2006-2008 ASP@Workshop All rights reserved.