Advertisement
SemlerPDX

Open Folder Path Using Explorer GUI

Aug 14th, 2020
980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.27 KB | None | 0 0
  1. ' Open Folder Path containing New Shadow Copy of Save File and Highlight File in 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 avcsShadowCopyPath as string
  21.     dim avcsTimestamp as string
  22.     dim avcsProfile as string = "core"
  23.    
  24.     Public Sub Main()
  25.        
  26.         if ((VA.GetText("AVCS_ACTIVE_PROFILE")) IsNot nothing)
  27.             avcsProfile = VA.GetText("AVCS_ACTIVE_PROFILE")
  28.         end if
  29.        
  30.         if ((VA.GetText("~avcs_shadow_copy_path")) IsNot nothing)
  31.             avcsShadowCopyPath = VA.GetText("~avcs_shadow_copy_path")
  32.             if ((VA.GetText("AVCS_TIMESTAMP")) IsNot nothing)
  33.                 avcsTimestamp = VA.GetText("AVCS_TIMESTAMP")
  34.                 VA.SetText("AVCS_TIMESTAMP", nothing)
  35.                 avcsShadowCopyPath = avcsShadowCopyPath.ToString() + "\avcs_" + avcsProfile.ToLower() + "_save_ShadowCopy_" + avcsTimestamp.ToString() + ".txt"
  36.                 Process.Start("explorer.exe", "/select," & avcsShadowCopyPath)
  37.             end if
  38.         end if
  39.    
  40.     End Sub
  41. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement