Solved

Open log file when batch script is finished

Posted on 2014-12-09
2
397 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
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…

777 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