Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a list of installed programs
Message
De
22/11/2007 12:00:55
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01270611
Message ID:
01270730
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform