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

Open A Text File

Status
Not open for further replies.

jimmythegeek

Programmer
May 26, 2000
770
US
Ok, I have looked in help, Knowledge base, FAQ's and it seems like this should be extremely easy. I have an app that runs 24/7 on a dedicated machine that copies files every 15 minutes. If there is an error, it writes it to an error log in the App.path. I have a button on the main form that says "View Error Log". I have tried Shell (only runs an .exe). The open method is for reading and writing behind the scenes, that's how I created the text file in the first place. All I want to do is open the error log in notepad. Shouldn't this be an easy thing to do??

Thanks in advance. Jim Lunde
compugeeks@hotmail.com
Custom Application Development
 
Hi,

Try Shell("notepad.exe yourlogfile.txt"). Guess this should work.

RR :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top