Solved

Open log file when batch script is finished

Posted on 2014-12-09
2
408 Views
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.
0
Comment
Question by:samiam41
2 Comments
 
LVL 24

Accepted Solution

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

Author Closing Comment

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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

808 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