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

x
?
Solved

Simple Batch File

Posted on 2004-09-29
3
Medium Priority
?
1,935 Views
Last Modified: 2012-06-21
Hi, I was just wondering if anyone can help me. I want to create a simple batch file so that I can back up my information every night. I have the backup part covered, the only problem is that It cannot back up out look while it is still running.

Is there any way I can stick something in my batch program to close Outlook before running the backup code, and then restart Outlook as soon as it is finished?

All help is much appreciated!

Thank you!

Bick
0
Comment
Question by:bick2000
[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
3 Comments
 
LVL 3

Accepted Solution

by:
PodExpert earned 2000 total points
ID: 12183500
You can close any application using a command TASKKILL by specifying the application title (or other parameters, but the title will be your case, I suppose). Try this:

taskkill /fi "WINDOWTITLE eq Outlook"

I am not using Outlook, so I don't know, whether the widnow title is Outlook or Microsoft Outlook or whatever - just put there the right thing and here we go. Taskkill will close the application safely, as it is done by user's intervention. When you use /f switch, it will perform forced shutdown of the app.

Regards.
P.
0
 
LVL 4

Expert Comment

by:avi247
ID: 12183907
0
 

Author Comment

by:bick2000
ID: 12184627
I ended up using task kill, with not the window title, but "SERVICES eq" switch or option!

Works great! Thanks for the help!

Bick
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

670 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