Computer Hope

Microsoft => Microsoft DOS => Topic started by: christina on September 07, 2004, 10:06:44 AM

Title: batch help
Post by: christina on September 07, 2004, 10:06:44 AM
I am creating a batch file that will close a windows program copy a file and then open the windows program when it's done.  I tried the killtask command but it is not recognized.  Any suggestions on how to do this?
Title: Re: batch help"
Post by: yeah_right on September 10, 2004, 09:21:36 AM
what os are you running??(win95/98/2000/xp???) in xp you can use "TASKKILL"(example:  "taskkill /im notepad.exe /t" kills notepad and all child processes started by notepad in xp) but in the older operating systems, you'll have to download a utility from the microsoft website that lets you kill processes.