Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Batch file not waiting for command to finish before moving on

06 Apr 2013   #1
Recusant

Windows 7 64Bit
 
 
Batch file not waiting for command to finish before moving on

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 System SpecsSystem Spec
.

06 Apr 2013   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

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/...o-desktop.aspx
My System SpecsSystem Spec
07 Apr 2013   #3
Recusant

Windows 7 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 System SpecsSystem Spec
.


Reply

 Batch file not waiting for command to finish before moving on




Thread Tools





Similar help and support threads
Thread Forum
Problem with batch file command to edit registry
reg add HTLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DontDisplayLastUserName /t REG_DWORD 00000001 /f I am trying to hide all users at logon and I know this is where you change it but for some odd reason the syntax is wrong and I can not figure it out. Can someone please...
Customization
In Need a batch file command
So, I need a command for batch files, or other things that a batch file can link to, that selects another window, say a text window(notepad) and then can be typed into. I've used the vbs scripting with Set oShell = CreateObject("WScript.Shell") oShell.AppActivate "Window name" ...
General Discussion
Elevated command via batch file?
I've set up a Virtual Router as in this page, but what it doesn't tell you is that you need to re-run the elevated command netsh wlan start hostednetwork every time the computer boots or comes out of standby. Is there a way to run an elevated command via a batch file? Later ... I've just...
Network & Sharing
Need advice on batch file for moving files using Send To
Okay, here's what I want to do. I want to be able to have an entry in my "Send To" submenu to move (not copy) whatever files I have selected to "C:\Hold" With my very limited knowledge of batch files, I made a simple .cmd file that I put in the Send To folder with the following line: move %1...
General Discussion
Batch File - For Command??
<This post has now been solved> Hi, Sorry if this is not the place but does anyone know how to do the following? I am trying to create a batch file to search a directory for a specified file type and list it in a text file then get the batch file to read that text file and copy all the...
General Discussion
Batch file for moving files to folder?
Hello, Wanted to see if any one here wouldn't mind writing a batch file or script that would move multiple files to a target folder. Here are the specifics: HDD1 Contains Folders A,B,C,etc... Folder A contains Folder A1 which contains File A2 Folder B contains Folder B1 which contains File B2...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:13.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App