Solved

Batch file history

Posted on 2014-03-01
3
801 Views
Last Modified: 2014-03-01
Is there a way to find out when a batch file was ran?  Is there a history log?
0
Comment
Question by:gloyola1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 96

Assisted Solution

by:Experienced Member
Experienced Member earned 250 total points
ID: 39898047
No, not unless you make one.

You need to add a line in your batch file to copy some text to a file. Do this as the last line.  The line would look like:  echo 123 >> c:\temp\file1
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 250 total points
ID: 39898053
You can alter a .BAT file  to include the generation of a history record or log entry, as one of the extra things the script does, every time the file is run.     But there is no log or history of someone manually running the batch file.

On the other hand, if run using a Windows scheduled task:

There is such a thing as a log of executed scheduled tasks in Windows: http://technet.microsoft.com/en-us/library/cc783861(v=ws.10).aspx


You can also setup security auditing for Read/Execute access on the file,
and turn on 'Object Auditing' of success events using Windows Group policy,
and then review the Windows security log for audited events against the file;
however,  these steps require additional preparation,

and  do not distinguish running from opening the file in notepad.
0
 

Author Closing Comment

by:gloyola1
ID: 39898109
Thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
Suggested Courses

630 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