Advertisement
gocha

Export CSV list of installed applications (uses PGLST)

Feb 11th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.59 KB | None | 0 0
  1. @rem Export CSV list of application in Program Files
  2. @rem PGLST is required: http://www.office-neo.jp/pglst/pglst.html
  3.  
  4. @set YYYYMMDD=%DATE:/=%
  5. @set MYDOCUMENTS=%USERPROFILE%\Documents
  6. @set DESTDIR=%MYDOCUMENTS%\Backup\%YYYYMMDD%\Profiles
  7.  
  8. @rem Check if My Documents exists
  9. @if not exist "%MYDOCUMENTS%" goto err_nodir
  10.  
  11. @rem Create destination directory
  12. @if exist "%DESTDIR%" goto destdir_is_ready
  13. @mkdir "%DESTDIR%"
  14. @if not exist "%DESTDIR%" goto err_nodir
  15. :destdir_is_ready
  16.  
  17. @pglst /ru /vw>%DESTDIR%\PGLST.csv
  18. @goto bye
  19.  
  20. :err_nodir
  21. @echo Directory not found>&2
  22. @exit /b 1
  23.  
  24. :bye
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement