Results 1 to 9 of 9
  1. #1
    2 Star Lounger
    Join Date
    Jan 2002
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Start Outlook from a .bat file (2000)

    What is the .bat command line for starting Outlook from a batch file?
    The goal is to run a pst back-up through a .bat command then start Outlook.
    My pst file is located on a portable hard drive so using scheduler is tough. XXCOPY through a bat command would allow me to add a time stamp to each bac-up version so I'd never over write a previously saved version.
    Or, maybe some one knows a better way!
    Thanks in advance for your time.

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Start Outlook from a .bat file (2000)

    It should be something as straightforward as:

    <code>"C:Program FilesMicrosoft OfficeOffice10Outlook.exe"</code>

    (Depending on your version of Office, the path may be slightly different - so I suggest you check it out first!)

    See this article for ideas on options for the startup mode.

  3. #3
    2 Star Lounger
    Join Date
    Jan 2002
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Start Outlook from a .bat file (2000)

    Thanks Leif. I thought it would be simple but not that simple. Got time for another question?
    Is there a file where OL "Tasks" are stored or are they in the .pst file?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Start Outlook from a .bat file (2000)

    E-mails, appointments, contacts and tasks are all stored in the .pst file.

  5. #5
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Start Outlook from a .bat file (2000)

    They and everything else should be in your pst file.
    There are various things you can export (File > Import and Export) if you want separate 'back-ups', but I'm not sure if you can separate Tasks - I don't use them myself.

  6. #6
    2 Star Lounger
    Join Date
    Jan 2002
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Start Outlook from a .bat file (2000)

    Thanks to both Hans & Leif

  7. #7
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,580
    Thanks
    5
    Thanked 1,058 Times in 927 Posts

    Re: Start Outlook from a .bat file (2000)

    Check out the <img src=/S/free.gif border=0 alt=free width=30 height=15> Download details: Outlook 2003/2002 Add-in: Personal Folders Backup. It will automatically backup your pst files on a frequency you set. It is run when you close Outlook so you don't even need a batch file.

    Joe
    Joe

  8. #8
    2 Star Lounger
    Join Date
    Jan 2002
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Start Outlook from a .bat file (2000)

    Thanks to all, the info is very good.
    I finally went with a bat file that runs xxcopy and saves the .pst file with the date/hour/min/sec in the actual file name: .pst2007-12-07,-11-43-05.
    I start Outlook up thru the bat file and it copies the pst before opening Outlook. I suppose I could do the save when Outlook closes but...

    Again, thanks for your insights. What are your thoughts on running Office 1997 or 2000 on a 64-Bit XP platform ? My new computer is 64-Bit capable but my apps are old.

  9. #9
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,580
    Thanks
    5
    Thanked 1,058 Times in 927 Posts

    Re: Start Outlook from a .bat file (2000)

    Before deciding to run 64-bit XP make sure that you have 64-bit XP drivers for everything. 64-bit XP is somewhat of an afterthought as far as OSes go. There is very little hardware and software support for it. If you really want to run a 64-bit OS look at Vista as long as your hardware can support Vista properly. All that being said, Office 97 & 2000 should run. NOTE: That neither Outlook 97 nor Outlook 2000 will run under Vista. You'd have to use Windows Mail or preferably Windows Live Mail.

    Joe
    Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •