Like Tree1Likes
  • 1 Post By hackerman1

Thread: Speed up & simplify the process of repairing Outlook pst-files

  1. #1
    hackerman1 is offline Senior Member
    Join Date
    Dec 2008
    Location
    Sweden
    Posts
    1,525

    Default Speed up & simplify the process of repairing Outlook pst-files

    Do you want to speed up and simplify the process of repairing Outlooks pst-files ?

    This simple program was posted yesterday as a "quickfix" for a member who (in another thread) said he had to run scanpst.exe several times to repair Outlooks pst-files.
    Today when i was updating the post i looked at the code and saw that i could rewrite it so it also works in CMD, which means that you donīt have to use TCC.
    But I recommend getting TCC anyway.
    Personally i prefer TCC over CMD since it has more commands, is more user-friendly and lets you do more advanced programming.
    But also because I have posted other small programs that might interest you, and they are btm-files requiring TCC.

    Here is a simple program that i wrote.
    It saves you from having to restart scanpst.exe manually several times, and from having to enter your Admin-password each time...

    You should run the program as Administrator, then you only have to enter your Admin-password once.

    Procedure
    1. Follow the normal procedure for Scanpst.exe (scan, create backup, repair etc.)
    2. When scanpst says "Repair complete", Click OK
    3. Press any key

    The program jumps back to the beginning.
    Repeat the procedur at point 1 above.

    When scanpst.exe doesnīt find any more errors

    Kill Scanpst.bat / Scanpst.btm instead of pressing any key.
    Should you happen to press a key accidentally then there is no harm done, just kill both programs instead...

    Scanpst.btm (Requires TCC)
    Code:
    :A
    C:\PROGRAM FILES\OFFICE 2010\Office14\
    SCANPST.EXE
    PAUSE
    GOTO A
    Scanpst.bat (Works in CMD)
    Code:
    :A
    C:
    CD \
    CD PROGRAM FILES\OFFICE 2010\Office14\
    SCANPST.EXE
    PAUSE
    GOTO A
    If you remove the PAUSE the program will restart scanpst.exe without the need to press any key (point 3 in procedure) .
    But then you canīt kill scanpst.exe !
    It will restart forever....
    To stop the loop, you have to kill Scanpst.btm / Scanpst.bat first, then kill scanpst.exe.

    Note: this is just an example.
    In Scanpst.bat you have to change the letter in line 2, to the disk where you have Outlook installed, in a standard installation itīs C.

    And in both programs you have to change the path to the folder where you have Outlook installed.

    Scanpst.btm is a BTM-file and not a BAT-file, you will need TCC/LE, the FREE version of Take Command, software available here:
    Windows Command Prompt | Windows Console CMD Command Line

    Personally i prefer TCC over CMD since it has more commands, is more userfriendly and lets you do more advanced programming.
    Last edited by hackerman1; 18th April 2015 at 07:59.
    HappyAndyK likes this.

  2. #2
    Matrix's Avatar
    Matrix is offline Senior Member
    Join Date
    Jul 2009
    Posts
    395

    Default

    This is going to come handy some day. Thank you.

  3. #3
    hackerman1 is offline Senior Member
    Join Date
    Dec 2008
    Location
    Sweden
    Posts
    1,525

    Default

    Quote Originally Posted by Matrix View Post
    This is going to come handy some day. Thank you.
    You are welcome.
    Take another look at my post above.
    I have updated the original version, and added a new version for CMD.

Posting Permissions

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

Log in

Log in

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22