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
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?
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
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
Summary: YOUR RIGHT GVFM DOESN'T WORK FROM DOS UNLESS YOUR ALREADY IN WINDOWS WINFILE WORKS JUST AS GOOD IN WINDOWS. WHAT I AM LOOKING FOR IS A WINDOWS EXPLORER EMULATER THAT WILL RUN FROM DOS WITH OUT WINDOWS...
Summary: Help! I need to wipe/reformat a hard drive which has a corrupted Windows 98 operating system. I have specialized software for the task and the original setup CD ROM. My problem is that I need to acces...
Summary: It sounds like you are trying to use a Real Mode DOS diskette to start the install process. While this can be done, it can cause problems. You should either be booting directly from the Windows ME in...