用OpenFileDialog 取得文件名后 分别取出目录名和文件名

dim filename as string = openfiledialog.filename

dim fileinfo as new FileInfo(filename)

dim filepath as string = fileinfo.DirectoryName

dim name as string = fileinfo.name

你可能感兴趣的:(string)