Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Batch file history

Posted on 2014-03-01
3
Medium Priority
?
928 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
3 Comments
 
LVL 99

Assisted Solution

by:John Hurst
John Hurst earned 1000 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
Suggested Courses

971 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