Guest User

Untitled

a guest
Feb 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Set objFSO = CreateObject("Scripting.FileSystemObject")
  2. Set objnet = CreateObject("wscript.network")
  3. Set olkApp = CreateObject("Outlook.Application")
  4. Set objFolder = objFSO.GetFolder("K:\")
  5. For Each objFile In objFolder.Files
  6. If LCase(objFSO.GetExtensionName(objFile.Name)) = "pst" Then
  7. olkApp.Session.AddStore objFile.Path
  8. End If
  9. Next
Add Comment
Please, Sign In to add comment