Pages

Thursday 13 June 2013

Close application in cmd or command line!!!

Hey in our last session we did explore the variety of stuffs of creating a script that would start an application.
Now we are going to Learn how to End or Close the application..
Every application that runs on your desktop are nothing but process ,you could explore its name by checking the task manager (ctr-alt-Del) .
or type tasklist in cmd.

We use TASKKILL Command to terminate an application.
Exit command is used to terminate cmd .exe itself

Syntax:
TASKKILL /IM application.exe

eg program:
@echo off
TASKKILL /IM  notepad.exe
exit.

In next lesson we would be learning of  declaring varialbles.....

No comments:

Post a Comment