dhmak

lock_scr_photos

Sep 15th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. ' Coded by Velociraptor - 22.04 2016
  2. ' www.sordum.net
  3. ' Desktop -------------------------------------
  4. Const ssfDESKTOPDIRECTORY = &h10
  5. Set oShell = CreateObject("Shell.Application")
  6. strDesktop = oShell.NameSpace(ssfDESKTOPDIRECTORY).Self.Path
  7. ' Environment variables and copy --------------
  8. Dim oFSO, strAppData, objShell
  9. Set objShell = CreateObject("WScript.Shell")
  10. Set oFSO = CreateObject("Scripting.FileSystemObject")
  11. objShell.CurrentDirectory = oFSO.GetParentFolderName(WScript.ScriptFullName)
  12. strAppData=objShell.ExpandEnvironmentStrings("%LOCALAPPDATA%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets")
  13. oFSO.CopyFolder strAppData , strDesktop &"\sordum.net", True
  14. Set objShell = Nothing
  15. Set oFSO = Nothing
  16. ' Extension -----------------------
  17. sVBSPath = strDesktop &"\sordum.net"
  18. with createobject("wscript.shell")
  19. .currentdirectory = sVBSPath
  20. .run "%comspec% /c ren *. *.jpg", 0, true
  21. end with
  22. Set objShell = CreateObject("Wscript.Shell")
  23. strPath = "explorer.exe /e," & strDesktop &"\sordum.net"
  24. objShell.Run strPath
Advertisement
Add Comment
Please, Sign In to add comment