Question

Discussion in 'Mixed Languages' started by WinDev, Jan 3, 2014.

  1. WinDev

    WinDev MDL Expert

    Jul 6, 2013
    1,226
    1,185
    60
    I want to make a program which, when open a program, you can choose which a Office program to open (Word, Excel, PowerPoint 2003). I mean multi-choosing a program. But how to make it?

    My father want to have both Office 2003 and Office 2010 installed on Windows 7 x64.
     
  2. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    I just did a quick google on installing different version of Office onto the same PC.

    Apparently it does not cause to many problems. Outlook and Access I think it said.
    The trick was to install the older version first.

    As for a prog to let you choose your preferred app, would it just be as simple as

    START\All Programmes\ "your chosen app"

    Or make a folder on your Desktop Called " Office Shortcuts" and create shortcuts for all the Office apps and copy them into that folder.
    Simply open the folder and select your app.

    Or have I read this wrong.
     
  3. VladimirVP

    VladimirVP MDL Novice

    Mar 8, 2014
    1
    0
    0
    #3 VladimirVP, Mar 8, 2014
    Last edited by a moderator: Apr 20, 2017
    it is possible to do with just a CMD script:
    Code:
    @ECHO off
    cls
    :start
    ECHO.
    ECHO 1. Start Word
    ECHO 2. Start Excel
    ECHO 3. Start PP
    set /p choice=Type the number to start the program.
    rem if not '%choice%'=='' set choice=%choice:~0;1% ( don`t use this command, because it takes only first digit in the case you type more digits. After that for example choice 23455666 is choice 2 and you get "bye"
    if '%choice%'=='' ECHO "%choice%" is not valid please try again
    if '%choice%'=='1' goto word
    if '%choice%'=='2' goto excel
    if '%choice%'=='3' goto pp
    ECHO.
    goto start
    :hello
    ECHO STARTING WORD
    start "%ProgramFiles%\Path_To_Your_Word_EXE"
    goto end
    :bye
    ECHO STARTING EXCEL
    start "%ProgramFiles%\Path_To_Your_EXCEL_EXE"
    goto end
    :test
    ECHO STARTING POWER POINT
    start "%ProgramFiles%\Path_To_Your_POWEER_POINT_EXE"
    goto end
    :end
    pause
    exit
    
    
     
  4. Nancy Koma

    Nancy Koma MDL Novice

    Sep 19, 2014
    13
    0
    0
    Search on Google. It may help u a lot.