2011-07-01から1ヶ月間の記事一覧

まったり

暑いよねー

イタズラ発見

おっさんは見てたぞー

ネコ草大好き

スゴイ勢いで食べるよ。 顔うまってるし。

Path.GetDirectoryName の もう1つ上の階層を指定

LastIndexOf と LastIndexOfAny を使うとイイよ。 Dim FilePath As String = "G:\sample1\sample2\sample3\test.txt" Dim UpDir As String = Path.GetDirectoryName(FilePath) 'G:\sample1\sample2\sample3 Dim tempCount As Integer = UpDir.LastIndexOf("\…