.bat file help needed


  1. Posts : 2
    W7 32bit ultimate
       #1

    .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 Computer


  2. Posts : 17,796
    Windows 10, Home Clean Install
       #2

    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 Computer


  3. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #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:
    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 Computer


  4. Posts : 2
    W7 32bit ultimate
    Thread Starter
       #4

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 14:01.
Find Us