Link to home
Start Free TrialLog in
Avatar of JasonRegan
JasonRegan

asked on

Editing external Notepad log file using VB application

I have a VB6 application which basically installs various applications on a machine. These applications are novell delivered and the VB app pulls them in from an *.ini file. What i would like to do is have the program write into an existing log.txt file the names of the applications it installs.

I have it already writing the information into the registry using a module, but i am unsure how to get VB to write any information into an external notepad file.

Thanks everyone in advance
ASKER CERTIFIED SOLUTION
Avatar of aelatik
aelatik
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just a comment, don't use the filesystemobject unless you really have to! It requires IE to be installed on the client and the scripting runtime enabled (it may be disabled by a system administrator). Also it may add significant overhead to deployment. VB has native file functions as shown that can achieve almost everything you would need to do. The filesystemobject is available because it is necessary for VBScript which doesn't have the native file functions, I would caution strongly against its use in VB proper unless absolutely necessary.
Here Here!

Someone else that hate the File Sucking Object. YES!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

JasonRegan:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
Moderator, my recommended disposition is:

    Split points between: aelatik and TimCottee and Diveblue

DanRollins -- EE database cleanup volunteer