Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get installed software list

Status
Not open for further replies.

newtofoxpro

Programmer
Sep 16, 2007
301
0
0
IN
In winxp I go start>setting>control Panel>Add or remove programs. And and got Currently installed programs. Is it possible to get this currently installed programs list in VFP8 ?

 
This Code is written by me. So there is not LINK....

cCmdLine="command.com /c reg query HKLM\SOFTWARE /s >65898934.tmp"
DECLARE INTEGER WinExec IN kernel32 STRING cCmdLine, INTEGER nCmdShow
=WinExec(cCmdLine,0)
CREATE CURSOR TmpCur (mVar c(250))
APPEND FROM 65898934.tmp TYPE SDF
BROWSE FOR mVar#" "
RETURN
 
After I ammended the file name (dosbox does not automatically save to the directory vfp is reading from), it throws "line too long". Otherwise it's a good idea to make use of the reg command.

You don't need WinExec, though, VFP has RUN or shorter !

!reg query HKLM\SOFTWARE /s >65898934.tmp

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top