Computing.Net > Forums > Disk Operating System > Kill Windows task from DOS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Kill Windows task from DOS

Reply to Message Icon

Name: AndyC
Date: December 11, 2000 at 08:11:43 Pacific
Comment:

I want to close a specific application at a specific time, so I figured I could use a scheduler to run a batch file that would kill the app.

Anyone know if you can use a batch file to kill this app from DOS?



Sponsored Link
Ads by Google

Response Number 1
Name: Snowman
Date: December 11, 2000 at 15:41:46 Pacific
Reply:

To put it short: No!


0

Response Number 2
Name: DoOMsdAY
Date: December 12, 2000 at 03:17:42 Pacific
Reply:

If you mean a console app (one run in a DOS box while Windows is running,) then such a thing would be incredibly easy to write. There are multiple ways to go about it. The easiest progmatically would probably be to call the app as such: "kill application_title" where "application_title" is the title bar caption of the application. A quick EnumWindows() to find the app in question, followed by a KillProcess() and your app would be dead. If it's not a secured app that needs user confirmation to exit, one would be better off using SendMessage( WM_CLOSE ) instead to close the app properly. I've already done all of this before to write an app to close a security system on the computers at my University. (I crack their security for them to find holes...then report the holes.) I could easily write the same thing again if I come across any free time here before Christmas. If I do, I'll let you know.


0

Response Number 3
Name: Michael
Date: December 12, 2000 at 06:07:09 Pacific
Reply:

Doomsday,

All those commands you speak of are Windows Scripting commands not DOS commands, correct? Speaking of which, I would like to learn more about Windows Scripting. Can you recommend a good website? All the ones I've found are more geared toward web programming which I don't really care about.

-Michael


0

Response Number 4
Name: DoOMsdAY
Date: December 12, 2000 at 07:24:29 Pacific
Reply:

Actually they're Win32 programming APIs. The sort of calls you make from Visual Basic or Visual C++, etc. I don't know Windows Scripting myself, but the question is open to an answer from someone else. :)


0

Response Number 5
Name: DoOMsdAY
Date: December 14, 2000 at 16:36:15 Pacific
Reply:

I sent the file to the address you supplied above. It only took me maybe 30 mins to write. :)


0

Related Posts

See More



Response Number 6
Name: Darrell Jonssn
Date: February 12, 2001 at 06:13:27 Pacific
Reply:

Actually there is a DOS command
based on the unix utilities
KILL.EXE and PS.exe which enable
the downing of a windows app from
a dos command. Type in KILL.exe
on Yahoo.com it is easy to find and use


0

Response Number 7
Name: Slnkiehead
Date: March 31, 2001 at 11:55:26 Pacific
Reply:

http://virtunix.itribe.net/files/unix95.7.zip

Common *nix apps for Win9x/Me


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Kill Windows task from DOS

RE;IS THERE A WINDOWS EMULATOR FOR DOS www.computing.net/answers/dos/reis-there-a-windows-emulator-for-dos/8539.html

Need to kill Windows!!! www.computing.net/answers/dos/need-to-kill-windows/12264.html

installing window sME from DOS www.computing.net/answers/dos/installing-window-sme-from-dos/12236.html