MS-DOS

Moderators: blip
Number of threads: 389
Number of posts: 904

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Batch file .. need help! Posted by Pushok on 23 Dec 2009 at 8:55 PM
I need a batch file that would kill Desktop Windows Manager (dwm.exe)when I turn on the game, and then keep it killed until I close the game.

Here is where i am at right now.
----------------------------------------
@echo off
cls
echo Killing DWM
net stop uxsms
title DWM Killer
echo (%time%) app launched
start /wait WRLauncher
pause
net start uxsms
exit

------------------------------------------

The problem is that the game (WarRock) starts off with a "WRLuncher.exe" > luncher starts "WRUpdater.exe" > and updater starts the game.

Is there any way to do something like this.

---------------------------------------------------------------------
@echo off
cls
echo Killing DWM
net stop uxsms
title DWM Killer
echo (%time%) app launched
start /wait WRLauncher

wait for "WRUpdater"
wait for "the game"

net start uxsms
exit

-------------------------------------------------------------------

I want the batch file to turn off by itself after I exit the game instead of having to press a key after pause.






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.