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
-
-
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.
-
thx for the reply orev...it didn't work unfortunately. Is this weird or what?
-
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? -
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. -
What about the gadgets in your sidebar ? anything related to Crystal reports? (highly unlikely though)
Problems with .bat file: opening two programs
Discussion in 'Windows OS and Software' started by Meetloaf13, Jan 16, 2008.