wrote :: 2006.01.17
Sub Sample1()
MsgBox Dir("C:\Work\Sample.txt")
End Sub
Sub Sample2()
MsgBox Dir("C:/Work/Sample.txt")
End Sub
Sub Sample3()
MsgBox Dir("C:\\\Work\\\\Sample.txt")
End Sub
Sub Sample4()
MsgBox Dir("C:\Work\.\.\dummy\..\..\Sample.txt")
End Sub
Sub Sample5()
If Dir("\\?\C:/Work\\Sample.txt") = "" Then
MsgBox "そのファイルは存在しません"
Else
MsgBox "ファイルは存在します"
End If
End Sub