Solved

Batch file help

Posted on 2009-04-01
3
179 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

863 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

20 Experts available now in Live!

Get 1:1 Help Now