.bat file help needed

ipub

New member
Local time
10:53 PM
Messages
2
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

Computer Manufacturer/Model Number
aver r3600 revo
OS
W7 32bit ultimate
CPU
dual core atom

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
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

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
:D 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

Computer Manufacturer/Model Number
aver r3600 revo
OS
W7 32bit ultimate
CPU
dual core atom
Back
Top