The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Problems with .bat file: opening two programs

    Discussion in 'Windows OS and Software' started by Meetloaf13, Jan 16, 2008.

  1. Meetloaf13

    Meetloaf13 fear the MONKEY!!!

    Reputations:
    547
    Messages:
    1,717
    Likes Received:
    42
    Trophy Points:
    66
    Hey guys, I wrote a .bat file to run Itunes & the sidebar with one click, since I use one of the gadgets when I am listening to Itunes.

    The .bat file does open both like it should, but it also starts the installation process for Crystal Reports9. I have to cancel this installation business and then it starts over again so I cancel it again.

    Any ideas what's going on and how I can remedy it?

    Here's the code:

    @echo off
    cd /d "C:\Program Files (x86)\iTunes\"
    start iTunes.exe
    cd /d "C:\Program Files (x86)\Windows Sidebar\"
    start sidebar.exe
    cls
     
  2. orev

    orev Notebook Virtuoso

    Reputations:
    809
    Messages:
    2,829
    Likes Received:
    1
    Trophy Points:
    56
    Try removing "cls". Maybe that's also the name of the installer. You don't need to clear the screen as the next thing will be to close the window when the .bat file is done.
     
  3. Meetloaf13

    Meetloaf13 fear the MONKEY!!!

    Reputations:
    547
    Messages:
    1,717
    Likes Received:
    42
    Trophy Points:
    66
    thx for the reply orev...it didn't work unfortunately. Is this weird or what?
     
  4. orev

    orev Notebook Virtuoso

    Reputations:
    809
    Messages:
    2,829
    Likes Received:
    1
    Trophy Points:
    56
    Does it only do it with that batch file, or does it do it when you open other command windows? How about if you write another batch file like:
    @echo test 123
    pause
    and run it, does it do it then?
     
  5. Meetloaf13

    Meetloaf13 fear the MONKEY!!!

    Reputations:
    547
    Messages:
    1,717
    Likes Received:
    42
    Trophy Points:
    66
    I figured out why that installer is popping up. It has to do with the sidebar.exe execution. If I run a .bat file with just Itunes, it doesn't show, but when I isolate the sidebar.exe it does. My sidebar still starts even when I cancel that installation. In fact, I just double-clicked on the .exe file, and it does it then as well. Any ideas now?

    ...this is getting really quirky.
     
  6. PhoenixFx

    PhoenixFx Notebook Virtuoso

    Reputations:
    744
    Messages:
    3,083
    Likes Received:
    0
    Trophy Points:
    105
    What about the gadgets in your sidebar ? anything related to Crystal reports? (highly unlikely though)