Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get a list of installed programs
Message
From
22/11/2007 12:00:55
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Windows
Category:
Computing in general
Miscellaneous
Thread ID:
01270611
Message ID:
01270730
Views:
23
>Hi Jay,
>
>>I get an error on the "FOR" command in DOS. Doesn't recognize it. I'm sure it's user error.
>
>That's because I gave you the batch file syntax for BAT and CMD files. If you want to run the line interactively in the Console window, you need to replace %%i with %i. Sorry for not being more precise in my first reply.

That's ok, but I'm still having a small issue. I typed this into the command window:
FOR /F %i IN ('reg query HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products') DO @reg query %i /v ProductName|FINDSTR "ProductName" >c:\temp\apps.txt
And I get an error that there is an invalid key name. Immediately after that, it does seem to run through the tree, but I only get this created in the apps.txt file:
    ProductName	REG_SZ	mMHouse
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform