Home     PowerPoint     Photoshop     Photos     Other     Studio     Info

Bookmark and Share  




Product Showcase




 



PowerPoint Notes

Info-things on PowerPoint usage including tips, techniques and tutorials.


Monday, November 30, 2009
posted by Geetesh at Monday, November 30, 2009 IST

If you have multiple versions of PowerPoint installed, you might find that when you double-click on a PPT or PPTX file, it opens in a version of PowerPoint that's different from the one you want it to open!

Now you can reinstall all your versions of PowerPoint (and Microsoft Office) again in the sequence you want -- and that might take a few hours, or you might do a few registry tweaks -- and that's not for the faint of heart, or even if you are scared of the registry!

So it was a great thing that one of our readers decided to share this DOS batch file with us that makes the whole process painless. Having said that, do this at your own risk -- and if you are comfortable!

Damian McDonald is the founder of Visual Newmedia which has over 15 years’ experience in developing communication solutions for a number of leading global brands.

Here is the code you need to paste in your batch file -- just replace this line:

set PathStart=C:\Program Files\Microsoft Office\OFFICE

to reflect the name of the partition where your copy of Microsoft Office is installed -- for example, if you installed to the D drive, the above line would change to:

set PathStart=D:\Program Files\Microsoft Office\OFFICE

OK -- here is the batch file:

REM **********************************************

REM Version 1.1 Date: 29/11/09
REM By Damian McDonald
REM www.visualpresenter.com.au
REM Registers the required Version of PowerPoint if it exists.

set PathStart=C:\Program Files\Microsoft Office\OFFICE
set PathEnd=\powerpnt.exe
set DirNum=11
set Version=2003
@echo Off

:Start
CLS
ECHO. Select the Version of PowerPoint to register.
ECHO.
ECHO 1. PowerPoint2003
ECHO 2. PowerPoint2007
ECHO 3. PowerPoint2010
ECHO.

set choice=
set /p choice=Enter your selection or Q to Quit.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto 1
if '%choice%'=='2' goto 2
if '%choice%'=='3' goto 3
if '%choice%'=='q' goto end
ECHO "%choice%" is not valid please try again
pause
Goto Start

:1
CLS
ECHO.
set DirNum=11
set Version=2003
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" ECHO PowerPoint %Version% does not appear to be loaded.
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" pause
IF EXIST "%PathStart%%DirNum%%PathEnd%" ECHO Registering PowerPoint %Version%.
IF EXIST "%PathStart%%DirNum%%PathEnd%" "%PathStart%%DirNum%%PathEnd%" /regserver
Goto End

:2
CLS
ECHO.
set DirNum=12
set Version=2007
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" ECHO PowerPoint %Version% does not appear to be loaded.
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" pause
IF EXIST "%PathStart%%DirNum%%PathEnd%" ECHO Registering PowerPoint %Version%.
IF EXIST "%PathStart%%DirNum%%PathEnd%" "%PathStart%%DirNum%%PathEnd%" /regserver
Goto End

:3
CLS
ECHO.
set DirNum=14
set Version=2010
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" ECHO PowerPoint %Version% does not appear to be loaded.
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" pause
IF EXIST "%PathStart%%DirNum%%PathEnd%" ECHO Registering PowerPoint %Version%.
IF EXIST "%PathStart%%DirNum%%PathEnd%" "%PathStart%%DirNum%%PathEnd%" /regserver
Goto End

:End
@echo on

REM **********************************************

Thanks Damian!

Labels: , ,

1 comments

Links to this post



Comments:


If you have multiple versions of PowerPoint installed, you might find that when you double-click on a PPT or PPTX file, it opens in a version of PowerPoint that's different from the one you want it to open!
  Edit Comment

Post a Comment

Links to this post:

Create a Link

    Follow me on Twitter...

    Archives:

    July 2004  |  August 2004  |  September 2004  |  May 2005  |  June 2005  |  July 2005  |  November 2005  |  February 2006  |  April 2006  |  June 2006  |  September 2006  |  October 2006  |  February 2007  |  May 2007  |  August 2007  |  November 2007  |  February 2008  |  October 2008  |  June 2009  |  November 2009  |  January 2010  |  April 2010  |  

    Featured Story

    Concept Slides: Animated Boxes

    This animated box is a square with a small glowing sphere that animates all four sides of the box separately uisng four each of wipe and motion path animations. Works great in PowerPoint 2007, but in PowerPoint 2010 the same animations happen a little faster! You can format the sphere and the lines as you want and the animations will still work -- download and use it in your presentations. For a nice effect, add a text box right in the middle of the square, and animate it to come after the square has already been animated.

    Animated Box  Animated Box

        
    Featured Book

    PowerPoint 2007 Complete Makeover Kit

    PowerPoint 2007 Complete Makeover Kit
    PowerPoint 2007 Complete Makeover Kit is out! Check the book on Amazon.com...

    And here are some free excerpts...


    Home |  PowerPoint |  Photoshop |  Templates |  Blog |  Notes |  Ezine |  Studio |  Advertise |  Feedback |  Info |  Site Map
    Store  |  RSS |  Privacy |  Testimonials
    Free PowerPoint Backgrounds | Free PowerPoint Templates | Free Christian PowerPoint Backgrounds
    Page copy protected against web site content infringement by Copyscape
      Page copy protected against web site content infringement by Copyscape


      ©2000-2010, Geetesh Bajaj. All rights reserved.

        since November 02, 2000