掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
ファイルとフォルダを区別するには? (ID:138542)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
例えば・・・ 変数pathにチェックしたいファイル(orフォルダ)のパスが設定されていたとして・・・ ------------------------------------------ Dim f As System.IO.FileInfo f = New System.IO.FileInfo(path) If (f.Attributes And IO.FileAttributes.Directory) = IO.FileAttributes.Directory Then MsgBox("Directory") Else MsgBox("File") End If ------------------------------------------- とか・・・
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.