andrew4582

Open Folder In Explorer VSMacro

Aug 11th, 2012
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Public Sub OpenFolderInExplorer()
  2.         Try
  3.             If (ValidateWindow()) Then
  4.                 DTE.ExecuteCommand("File.OpenContainingFolder")
  5.                 Return
  6.  
  7.             End If
  8.  
  9.         Catch ex As Exception
  10.             MsgBox(ex.Message)
  11.         End Try
  12.      End Sub
  13.    
  14.     Public Sub OpenProjectInExplorer()
  15.         'Dim solution As Solution2 = DTE.Solution
  16.        Try
  17.             DTE.ExecuteCommand("Project.OpenFolderinWindowsExplorer")
  18.         Catch ex As Exception
  19.             MsgBox(ex.Message)
  20.         End Try
  21.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment