SemlerPDX

Get Folder Path Using Explorer GUI

Aug 14th, 2020 (edited)
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.99 KB | None | 0 0
  1. ' Get Folder Path in Windows using Windows Explorer GUI
  2. '  by SemlerPDX Mar2020
  3. '  VETERANS-GAMING.COM
  4.  
  5.  
  6. Imports Microsoft.VisualBasic
  7. Imports System
  8. Imports System.Collections
  9. Imports System.Collections.Generic
  10. Imports System.Data
  11. Imports System.Drawing
  12. Imports System.Diagnostics
  13. Imports System.Windows.Forms
  14. Imports System.Linq
  15. Imports System.Xml.Linq
  16. Imports System.Threading.Tasks
  17. Imports System.Diagnostics.Process.Start
  18.  
  19. Public Class VAInline
  20.     dim avcsPath as string = ""
  21.     dim avcsGetPath as new FolderBrowserDialog()
  22.    
  23.     Public Sub Main()
  24.        
  25.         avcsGetPath.RootFolder = Environment.SpecialFolder.Desktop
  26.         avcsGetPath.Description = "AVCS - CORE - Save File System" + vbCrLf + vbCrLf + "Choose a destination for a Shadow Copy of the Save File:"
  27.        
  28.         if (avcsGetPath.ShowDialog() = DialogResult.OK)
  29.             avcsPath = avcsGetPath.SelectedPath
  30.             VA.SetText("~avcs_shadow_copy_path", avcsPath)
  31.         else
  32.             VA.SetText("~avcs_shadow_copy_path", "cancel")
  33.         end if
  34.    
  35.     End Sub
  36. End Class
Add Comment
Please, Sign In to add comment