指定された特殊フォルダを取得する

サンプルソース

<%
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 フォルダ




ファイル操作



ASPサンプル集
基本

ディクショナリ操作
<<すべてのサンプルをみる>>

ASPリファレンス

ファイル操作オブジェクト


Copyright (C) ASP@Workshop All rights reserved.