Solved

Batch file history

Posted on 2014-03-01
3
681 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 90

Assisted Solution

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Image capture and Deploy method is consist on two phases. In our first phase we capture the image of windows from the PC in which Windows and others softwares are already installed. In second phase we deploy the created image on new PC in which we…
The Display applet of Windows 7 Control Panel has changed a great deal since Windows XP  (it was missing and more or less replaced in Windows Vista by the Personalization applet.)  Below is a screenshot of what the Display applet of Windows XP, whic…
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…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now