Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Cmd close running window

  • Please log in to reply
4 replies to this topic

#1 ApInflux


  • Members
  • 28 posts
  • Local time:07:24 AM

Posted 12 October 2009 - 08:17 PM

Is there a way to close a running window using a Cmd or batch file command? Like when hitting Alt+F4

BC AdBot (Login to Remove)


#2 the_patriot11


    High Tech Redneck

  • BC Advisor
  • 6,763 posts
  • Gender:Male
  • Location:Wyoming USA
  • Local time:05:24 AM

Posted 10 December 2009 - 04:02 PM

why do you need to? to answer your question yes, but I don't intend to tell if it is for any illegal means.



Primary system: Motherboard: ASUS M4A89GTD PRO/USB3, Processor: AMD Phenom II x4 945, Memory: 16 gigs of Patriot G2 DDR3 1600, Video: AMD Sapphire Nitro R9 380, Storage: 1 WD 500 gig HD, 1 Hitachi 500 gig HD, and Power supply: Coolermaster 750 watt, OS: Windows 10 64 bit. 

Media Center: Motherboard: Gigabyte mp61p-S3, Processor: AMD Athlon 64 x2 6000+, Memory: 6 gigs Patriot DDR2 800, Video: Gigabyte GeForce GT730, Storage: 500 gig Hitachi, PSU: Seasonic M1211 620W full modular, OS: Windows 10.

If I don't reply within 24 hours of your reply, feel free to send me a pm.

#3 samuria


  • Members
  • 11 posts
  • Local time:12:24 PM

Posted 12 December 2009 - 07:20 PM

type exit

#4 dnthns87


  • Members
  • 27 posts
  • Local time:06:24 AM

Posted 18 March 2012 - 11:24 AM

I'm assuming that you are looking to taskkill a certain process or a certain batch file?

I have a few ways of doing this but first experiment with taskkill and tasklist and see if you can get it.

hope this helps

#5 muhuwj201


  • Members
  • 4 posts
  • Local time:06:24 AM

Posted 05 April 2012 - 12:35 PM

Type in
start taskmanager.exe
taskkill "program.exe"

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users