Simply viewing a file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application that shells to a DOS batch file to process data from
another system. It builds a .log file (simple text) that shows if the
process was successful - if the other program is running something else my
process fails. I just want to view the .log file to the screen to be sure
the process is OK then hit a key to continue with the program. All items I
have found in trying to look this up seem to refer to printing to a printer.
I'm sure this is easy but finding the process is the hard part!! THANKS for
any assistance.
 
FollowHyperlink should open the file in the program defined to handle logs,
e.g.:
FollowHyperlink "file:///c:/MyPath/MyFile.log"

If no file is defined to handle logs, you need to asscociate it with
notepad, or explicitly instruct it to use notepad to open it. ShellExecute
could do that:
http://www.mvps.org/access/api/api0018.htm
 
hi Ralph,

Ralph said:
I have an application that shells to a DOS batch file to process data from
another system. It builds a .log file (simple text) that shows if the
process was successful - if the other program is running something else my
process fails.
If it has a simple layout, then just import it as a table. Otherwise you
may use Open and Line Input in VBA to read the file line by line.


mfG
--> stefan <--
 
Back
Top