Computer Hope

Microsoft => Microsoft DOS => Topic started by: Aditi gupta on August 06, 2014, 12:43:33 AM

Title: batch file to give the output of programs and features with name, version detail
Post by: Aditi gupta on August 06, 2014, 12:43:33 AM
Hi ,

Can anyone guide me, in creating a barch file.
Which will search for Programs and features of every system and give me the details of nam and version of proframs and features installed.

Basically i want to capture all the data of programs and features in to and xml file.

We can use command appwiz.cpl also, to directly go to the desired patha nd then capture all the data.

Thanks in advance.
Title: Re: batch file to give the output of programs and features with name, version detail
Post by: Lemonilla on August 06, 2014, 09:03:45 AM
You cannot use xml files with batch, look into VBscript or Jscript.
Title: Re: batch file to give the output of programs and features with name, version detail
Post by: Aditi gupta on August 06, 2014, 09:55:20 PM
Logic will be in batch file and then redirecting the output in xml file.

this can be using batch file.

To run this batch file baground, i will call batch via VB script.

Then my purpose will be solved.

So i just need the logic, to capture the output of appwiz.cpl/ program files
Title: Re: batch file to give the output of programs and features with name, version detail
Post by: Squashman on August 07, 2014, 07:35:16 AM
So i just need the logic, to capture the output of appwiz.cpl/ program files
Can't be done with batch.
Title: Re: batch file to give the output of programs and features with name, version detail
Post by: Squashman on August 07, 2014, 07:39:32 AM
To run this batch file baground, i will call batch via VB script.
Then why didn't you search Google for a Vbscript solution.  Here is what I found.
http://www.vbsedit.com/scripts/apps/user/scr_226.asp