我正在尝试在vb中创建一个快速链接组合框。但是我似乎无法打开“图片,音乐,视频和下载”文件夹。
我试过了,Shell("explorer %HOMEPATH%/pictures", AppWinStyle.NormalFocus)
但是只是打开了documents文件夹,有什么帮助吗?
干得好...
'Open Pictures folder
Process.Start(My.Computer.FileSystem.SpecialDirectories.MyPictures)
'Open Music folder
Process.Start(My.Computer.FileSystem.SpecialDirectories.MyMusic)
'Open Videos folder
Dim strVideosPath As String = System.Environment.GetFolderPath(Environment.SpecialFolder.MyVideos)
Process.Start(strVideosPath)
'Open Downloads folder
Dim strDownloadsPath As String = System.Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) & "\Downloads"
Process.Start(strDownloadsPath)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句