Solved

Batch file help

Posted on 2009-04-01
3
178 Views
Last Modified: 2012-05-06
I use a batch file to do data backups in my office. Can I also have the batch file create a log file
with time and date info of when it was last executed? Please give example and/or link so i can figure this out.
Thank you.
0
Comment
Question by:stevedantonio
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
qualchoice-it earned 500 total points
ID: 24045626
Yep you sure can here is a snippet of a batch file that I use in my office to backup local PST files to a NAS device

@echo on
date /t > \\"servername"\Storage1\pst_backup\%computername%\pst_backup.log
time /t >> \\"servername"\Storage1\pst_backup\%computername%\pst_backup.log
echo close outlook if open >> \\lit-qca-back-01\Storage1\pst_backup\%computername%\pst_backup.log
taskkill /im outlook.exe
SLEEP 3
0
 

Author Closing Comment

by:stevedantonio
ID: 31565602
Perfect, thank you.
0
 
LVL 3

Expert Comment

by:qualchoice-it
ID: 24045686
No problem  :)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

760 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

23 Experts available now in Live!

Get 1:1 Help Now