wobbegong Posted August 29 Share Posted August 29 I see (at support.ccleaner.com/s/article/command-line-parameters-for-ccleaner-for-windows) that CCleaner supports several command-line options, and that "ccleaner /tools" will open the interactive program in the Tools menu. But what I would like to do is get a list of all of the installed programs in a TXT file from within in a batch script (essentially perform the equivalent of Tools -> Uninstall -> Save to text fille... -> enter file name and location -> Save). Is there any way that I can do that? Link to comment Share on other sites More sharing options...
Moderators nukecad Posted August 29 Moderators Share Posted August 29 You can't do that using CCleaners command line options. however you can do similar* using 'wmic' from within a batch file. Note that 'wmic' is a depricated command, that means that it won't be getting any updates (and may eventually be removed from Windows) but it still works. I've just created a batch file here containing only the single line below and it works in Windows 10 22H2. I used the following line. Copy/paste it into your batch and change [username] - or change the whole output path/filename if you like: (Being careful that you have write permissions for the specified path). wmic /output:C:\Users\[username]\Desktop\InstalledList.txt product get name,version *Whilst that does create a list of my installed apps for some reason it isn't listing them all. eg although it lists my Macrium and Softmaker apps, it isn't listing my Malwarebytes, or VLC, or CCleaner, or others that I have installed. Probably I need to specify something other than, or as well as, 'product'. EDIT- There again it may be because wmic is depricated, and so the 'product' alias is not getting updated with some of the newer installs? (I might take another look later to see if I can find what I'm missing there, but that should give you a start for creating your batch). I suspect though that CCleaner is getting it's list of installed apps from somewhere else in Windows, so that's a question of finding out just where CCleaner is getting it from and then fetching it from the same place yourself. *** Out of Beer Error ->->-> Recovering Memory *** Keep getting logged out of websites? See this link: https://community.ccleaner.com/topic/67601-saved-passwords/#comment-349999 Wondering about why some files come back after cleaning? See this link: https://community.ccleaner.com/topic/52668-tracking-files/?tab=comments#comment-300043 Link to comment Share on other sites More sharing options...
Recommended Posts