Open log file when batch script is finished

Posted on 2014-12-09
Medium Priority
Last Modified: 2014-12-09
Hey Experts.  Once my script is finished running, it closes out and I have to browse to the directory where the log file is saved in order to open it.  What is the script that would open the log file as the script is closing?  Thank you.
Question by:samiam41
LVL 26

Accepted Solution

NVIT earned 2000 total points
ID: 40489834
at the end of your .bat file:
set Logfile=c:\logfile.txt
start notepad %Logfile%

Author Closing Comment

ID: 40489904
You made it look too easy!  Thanks for the help.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

OfficeMate Freezes on login or does not load after login credentials are input.
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question