ちゃっぴの監禁部屋

ガチガチに締めすぎて動きがとれなくなる。。。

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  405  : 記事  5  : コメント  12043  : トラックバック  134

ニュース

記事カテゴリ

書庫

日記カテゴリ

Communities

Personal Information

Win32 の世界では File Streams の説明にあるとおり、path を "<file path>:<stream name>" もしくは "<file path>:<stream name>:$<date type>" のような形式で指定することにより File Streams が扱えるわけです。

COM ですが "Scripting" library に存在する各 class でもちゃんと扱えます。

VBScript の sample

Dim objFSO  ' As Scripting.FileSystemObject
Dim objFile ' As Scripting.TextStream

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = objFSO.CreateTextFile("<file path>")
objFile.WriteLine "hoge1"
objFile.Close

Set objFile = objFSO.CreateTextFile("<file path>:<stream name>:$<date type>")
objFile.WriteLine "hoge2"
objFile.Close

Set objFile = objFSO.OpenTextFile("<file path>:<stream name>:$<date type>")
Wscript.Echo objFile.ReadAll
objFile.Close
投稿日時 : 2007年8月26日 2:50

コメント

No comments posted yet.

Post Feedback

タイトル
名前
Url:
コメント