Solved

Batch file help

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
A Table within a User Form 24 78
Index Match Formula VBA 6 82
Excel VBA API Loop Query Return results in excel 4 60
Outlook Macro to delete emails not meeting keywords 56 115
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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