Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Batch file help

Posted on 2009-04-01
3
Medium Priority
?
187 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
[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
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
qualchoice-it earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

715 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