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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export System Information to text file

Status
Not open for further replies.

Denverdoug

Programmer
Nov 8, 2000
6
US
We have a FoxPro App distributed to quite a few clients. We would like to be able to collect their system information in detail in the event of a problem. I would like it written to a text file, we already have created a support bundle to get e-mailed to us. This will be an additional file in there.
 
Hi!

All commands that print something on screen (such as display memory, list stru etc.) could be redirected to text file by following commands:

&& setup printer for all output operations
SET PRINTER TO FILE "D:\MyFile.TXT"
SET PRINTER ON
.... && write something on screen, you can use ? as well
&& restore printer
SET PRINTER OFF
SET PRINTER TO


Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
I may have misworded my question... I need to find out how to access the system information. A good example of a program doing this is WinZip. Goto Help>About and click System Info.
 
try start> run> msinfo32
if that does not work lookin
/program files/Common files/microsoft shared/msinfo


David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
I snooped around my box looking for a COM object like MSINFO that could be instantiated and queried programmatically, but I didn't find what I was looking for.

The closes I could come was this:

[tt]oSysInfo = CreateObject("sysinfo.sysinfo")[/tt]

I believe (but not certain) it is based on the ActiveX control of the same name that ships with VFP.

Robert Bradley

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top