Solved Batch file not waiting for command to finish before moving on

Recusant

New member
Member
Local time
8:41 PM
Messages
82
Hiya, i wasn't really sure where to put this, and i have Googled it but i can't find a reason why my batch file no longer does what it used to do. According to everything i've read, my batch should stop at IE, until i close IE, whereupon it should continue. This is how it used to behave.

Here it is:
Code:
taskkill /im skydrive.exe
start "BF3 Borderless" /d "C:\PortableApps\BF3Borderless-1.2" "BF3 Borderless.exe"
"C:\Program Files (x86)\Internet Explorer\iexplore.exe"
taskkill /im "BF3 Borderless.exe"
taskkill /im Origin.exe
start "SkyDrive" /d "C:\Users\Recusant\AppData\Local\Microsoft\SkyDrive" "SkyDrive.exe"

It's supposed to unload SkyDrive which chews up my bandwidth when in use, load a little proggie that switches my viewing mode for BF3, then run IE... AND STOP! Problem is, it simply doesn't stop there - it used to! Then it's supposed to move on when i close IE and put my system "back to normal".

I had changed it recently to put SkyDrive in there, but when i retrieved a backup that i KNOW worked, it too just kept going through the batch after IE had run (without me closing it).

I have no idea what has caused my batch to do this.

Help! (please)
 

My Computer My Computer

At a glance

Windows 7 64BitNo Current PCNo Current PCNo Current PC
Computer type
PC/Desktop
OS
Windows 7 64Bit
CPU
No Current PC
Motherboard
No Current PC
Memory
No Current PC
Graphics Card(s)
No Current PC
Sound Card
No Current PC
Monitor(s) Displays
No Current PC
Hard Drives
No Current PC
PSU
No Current PC
Case
No Current PC
Cooling
No Current PC
Other Info
No Current PC
Have you updated to IE10?

If so, then this line:
"C:\Program Files (x86)\Internet Explorer\iexplore.exe"
Is launching the 32bit version of IE10*...
...which then launches the 64bit version of IE10*
...then the 32bit version of IE10 exits ram & the batch file continues.

*you never see these windows

IE uses the first instance of iexplore to manage the other instances. This allows for crash recovery and other things. Starting with IE10, that manager instance will be 64bit on a 64bit OS. The tabs or child processes will be 32bit instances of IE by default. You should turn on 64bit tabs. A 32bit instance will be launched if a plugin is needed that only has the 32bit version installed.

Edit: more than you every wanted to know about stuff like this:
http://blogs.msdn.com/b/ieinternals...rk-security-addons-cookies-metro-desktop.aspx
 
Last edited:

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
That worked, thank you.

There was a moment where i wondered about trying the 64bit version, but in the past BF3 "Battlelog" didn't play nicely with it. So i skipped that troubleshooting step.

I forgot that IE10 came out. It looks no different.

Cheers.
 

My Computer My Computer

At a glance

Windows 7 64BitNo Current PCNo Current PCNo Current PC
Computer type
PC/Desktop
OS
Windows 7 64Bit
CPU
No Current PC
Motherboard
No Current PC
Memory
No Current PC
Graphics Card(s)
No Current PC
Sound Card
No Current PC
Monitor(s) Displays
No Current PC
Hard Drives
No Current PC
PSU
No Current PC
Case
No Current PC
Cooling
No Current PC
Other Info
No Current PC
Back
Top