There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
simple batch file


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
rjh4th's Avatar
Member with 90 posts.
 
Join Date: Dec 2003
29-Dec-2003, 04:50 PM #1
simple batch file
I am trying to write a batch file to automatically backup my outlook data. I haven’t done this before and I am sure I made a simple mistake. Here is what I have written:

xcopy /h /e /v /y C:\Documents and Settings\rudy.MURRAY\Local Settings\Application Data\Microsoft\Outlook F:\Users\Rudy\outlookbku

Any help would be appreciated.
mole's Avatar
Senior Member with 795 posts.
 
Join Date: Aug 1999
Location: Indian Head, MD "The land of large boxes."
29-Dec-2003, 07:08 PM #2
Better wrap anything with a space in it in quotation marks. Such as:

xcopy /h /e /v /y "C:\Documents and Settings\rudy.MURRAY\Local Settings\Application Data\Microsoft\Outlook\*.*" F:\Users\Rudy\outlookbku

(all on one line)

If you specify the file type, that is up to you, but the *.* will cover all of them. A /c can be added for good measure as this allows a graceful recovery if something goes wrong such as the file is in use.
__________________
mole
rjh4th's Avatar
Member with 90 posts.
 
Join Date: Dec 2003
30-Dec-2003, 09:57 AM #3
That sort of worked, it pulled the archive office data file and the extend DAT file, but the outlook office data file did not get backed up. Is there some kind of size limitation that may have kept that file from being copied?
mole's Avatar
Senior Member with 795 posts.
 
Join Date: Aug 1999
Location: Indian Head, MD "The land of large boxes."
30-Dec-2003, 07:28 PM #4
You have the /v switch which will verify each copy and you also have the /y switch to answer "yes". I usually use the combination:

xcopy {source}\*.* {destination}\*.* /s /e /h /c /y

(/y isn't supported the same in NT as in 2K or XP, nor are the switches exactly the same in Win9x, but generally still apply)

This gets all files and subdirectories no matter if empty or containing files.

Make sure that you are pointing in the proper directory, mine is located down the same tree except there is an "indentities directory and another named for the CLSID in addition to what you have below "...\local settings\application data\..." . There is no size limit assuming the destination has adequate capacity. You will have to close anything locking the file as well, such as Outlook and make certain that the process is fully closed by checking the task manager and ending task on it if it is still running. Frequently Outlook will continue to run in the bkg. if the database files are large or corrupted. At login/boot-up is a good time to do things before you open applications.
__________________
mole

Last edited by mole : 30-Dec-2003 07:35 PM.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:29 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.