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: .bat file help needed

22 Jan 2011   #1

W7 32bit ultimate
.bat file help needed

Hi there,

This is my first post but I've been looking around here for a while. I could really do with some help with my media PC.

TO get flawless playback with my media software I need to close down all the programs that may be running in the background. I've noticed for example if I'm playing 1080p files and somebody msn's me, it jitters like it has parkinsons.

I've seen task kill used on the CLI so I know I can kill the processes but what I need help with is this :

1) run batch file
2) kill desired processes
3) run xbmc media player
4) when this ends, restart killed processes

Is this even possible with a batch file?

Thanks for any help on this one !

My System SpecsSystem Spec
22 Jan 2011   #2

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install

I tend to believe that you do not have to shut down all that is in the background. I sort of think it may be only one.
Try a clean boot and find out, so we can solve it
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
My System SpecsSystem Spec
22 Jan 2011   #3


Hi Ipub, welcome to the Seven Forums.

What you want can easily be done with a a batch file.

I have not installed XBMC Player, so this example shows how to stop Live Messenger if it's running, then launch Windows Media Player, and relaunch Live Messenger after Windows Media Player is closed:
taskkill /IM msnmsgr.exe
"%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe"
"%ProgramFiles(x86)%\Windows Live\Messenger\msnmsgr.exe"
Use /IM swithc with taskkill, followed by the name of the process you want to terminate. To terminate more than one process, syntax is taskkill /IM process_1.exe /IM process_2.exe /IM process_3.exe and so on, swith /IM before each process name you want to terminate.

Create the batch with Notepad, save with .bat extension.

My System SpecsSystem Spec

23 Jan 2011   #4

W7 32bit ultimate

Thanks for pointing me in the right direction Kari, I don't know why but I just assumed it would execute each program one by one, without waiting for them to close. Interesting. It's been a long time since I've used dos commands.

Richc46, whilst you're probably right, this is an easier solution to the problem. The dual core atom struggles to run windows 7 xbmc,live messenger and others as it is. Only one gig of ram which probably isn't helping! I have overclocked it too which is helping..
My System SpecsSystem Spec

 .bat file help needed

Thread Tools

Similar help and support threads
Thread Forum
WDS Unattend.xml answer file help needed
I have been trying to transition over to using WDS for my main method of Windows 7 image deployment in our Server 2008 R2 domain environment. I am having trouble with getting the answer file to work properly. I have read through multiple threads, posts, and guides including the guide on this site ...
Installation & Setup
Help Needed with Searching File/Folder/Move .Bat file
I've been searching the last 2 hours on a solution to my problem & have yet to find an answer so I thought I would post it here. Description of Problem: I have a folder dedicated for songs (guitar tabs & chords) that are .htm extensions, however I would like to move these songs to the/an...
Windows 7 Pro x64 file needed
anyone have this from before sp 1 of the original windows 7 dvd xchalVx64.sys
Installation & Setup
Recover hidden file help needed
I have a problem , I need to recover a hiiden file on a removable drive , I had a system crash last night and had no other choice but to do a system restore. I am running Windows 7 x64 , I had an important file hidden on a removable drive protected by Free Hide Folder , Free Hide Folder was...
BSOD Help and Support
mpq file help needed
I have a mpq file that I can not opened. It is for a game I want to play. I can not open it with anything on the pc.
General Discussion
help needed on making windows iso file
can anyone tell me how to make a windows bootable iso file. like the ones u can download on torrent sites. i mean how do u make one with programs install. i want to doit for my self, so whenever something happens to windows i can always make a fresh install, but this way i have all my programs...
Installation & Setup

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 15:48.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App