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
ipub

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
richc46

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install
 
 

Welcome
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
Kari

Microsoft Community Contributor Award Recipient

 

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:
Code:
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.

Kari
My System SpecsSystem Spec
.

23 Jan 2011   #4
ipub

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
Reply

 .bat file help needed




Thread Tools




Similar help and support threads
Thread Forum
Assistance Needed with sfc Log File
Hi All For a few weeks now, my PC has been quite slow/sluggish (in starting up, connectingto the internet and opening some files). I used the sfc /scannow feature, then created the sfcdetails.txt file on my desktop. Here I’ve attached the results. Can anyone assist me with the cleaning up of...
Performance & Maintenance
Help needed in Text file
Hi, I have a folder which has 20 text files and i need to find a word "Core" on the text files and and need to list out the file name where the text "Core" exists. for /R %%a in (C:\Sample\*.txt) do find "%Core" %%a >> output.txt But the above code is not working as expected. any sample code...
General Discussion
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...
Software
Windows 7 Pro x64 file needed
anyone have this from before sp 1 of the original windows 7 dvd xchalVx64.sys
Installation & Setup
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


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 01:05.
Twitter Facebook Google+